blob: e256253a7f3646561f70967c948568badeaaffd9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# Modified Script for Google Search
# Original Submitted by https://github.com/LeventKaanOguz
# Opens rofi in dmenu mod and waits for input. Then pushes the input to the query of the URL.
rofi_theme="$HOME/.config/rofi/config-search.rasi"
msg='‼️ **note** ‼️ search via default web browser'
# Kill Rofi if already running before execution
if pgrep -x "rofi" >/dev/null; then
pkill rofi
#exit 0
fi
# Open rofi with a dmenu and pass the selected item to xdg-open for Google search
#echo "" | rofi -dmenu -config "$rofi_config" | xargs -I{} xdg-open "https://www.google.com/search?q={}"
echo "" | rofi -dmenu -config $rofi_theme -mesg "$msg" | xargs -I{} xdg-open "https://www.google.com/search?q={}"
|