aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorJa.KooLit <jimmielovejay@gmail.com>2024-04-21 23:59:12 +0900
committerGitHub <noreply@github.com>2024-04-21 23:59:12 +0900
commit15fb0732c99cb63ec3997210053373704de0eec2 (patch)
tree20c73e6b7bbc250645f6f7b59ccb78c0a53d84b7 /config
parente259d767b70efcb987dffb0a506ebed9e299dd44 (diff)
parent3208ecfdfa18de1c6c3ffab309520e5459490828 (diff)
Merge pull request #203 from LeventKaanOguz/rofi-google-test
Adding Google Search to rofi indirectly
Diffstat (limited to 'config')
-rw-r--r--config/hypr/configs/Keybinds.conf1
-rwxr-xr-xconfig/hypr/scripts/KeyHints.sh4
-rwxr-xr-xconfig/hypr/scripts/RofiSearch.sh3
3 files changed, 5 insertions, 3 deletions
diff --git a/config/hypr/configs/Keybinds.conf b/config/hypr/configs/Keybinds.conf
index 5b8e5fd4..1946cc27 100644
--- a/config/hypr/configs/Keybinds.conf
+++ b/config/hypr/configs/Keybinds.conf
@@ -23,6 +23,7 @@ bind = CTRL ALT, P, exec, $scriptsDir/Wlogout.sh
bind = $mainMod, H, exec, $scriptsDir/KeyHints.sh # Small help file
bind = $mainMod ALT, R, exec, $scriptsDir/Refresh.sh # Refresh waybar, swaync, rofi
bind = $mainMod ALT, E, exec, $scriptsDir/RofiEmoji.sh # emoji
+bind = $mainMod, S, exec, $scriptsDir/RofiSearch.sh # Google search from Rofi
bind = $mainMod SHIFT, B, exec, $scriptsDir/ChangeBlur.sh # Toggle blur settings
bind = $mainMod SHIFT, G, exec, $scriptsDir/GameMode.sh # animations ON/OFF
bind = $mainMod ALT, L, exec, $scriptsDir/ChangeLayout.sh # Toggle Master or Dwindle Layout
diff --git a/config/hypr/scripts/KeyHints.sh b/config/hypr/scripts/KeyHints.sh
index f5be826d..796084b8 100755
--- a/config/hypr/scripts/KeyHints.sh
+++ b/config/hypr/scripts/KeyHints.sh
@@ -41,6 +41,7 @@ yad --width=$dynamic_width --height=$dynamic_height \
" enter" "Terminal" "(kitty)" \
" or  D" "App Launcher" "(rofi)" \
" T" "Open File Manager" "(Thunar)" \
+" S" "Google Search" "(rofi)" \
" Q" "close active window" "(not kill)" \
" Shift Q " "closes a specified window" "(window)" \
" Alt V" "Clipboard Manager" "(cliphist)" \
@@ -68,6 +69,3 @@ yad --width=$dynamic_width --height=$dynamic_height \
" E" "View or EDIT Keybinds, Settings, Monitor" "" \
"" "" "" \
"More tips:" "https://github.com/JaKooLit/Hyprland-Dots/wiki" ""\
-
-
-
diff --git a/config/hypr/scripts/RofiSearch.sh b/config/hypr/scripts/RofiSearch.sh
new file mode 100755
index 00000000..a16b52d8
--- /dev/null
+++ b/config/hypr/scripts/RofiSearch.sh
@@ -0,0 +1,3 @@
+# Opens rofi in dmenu mod and waits for input. Then pushes the input to the query of the URL.
+#
+echo "" | rofi -dmenu -p "Search:" | xargs -I{} xdg-open https://www.google.com/search?q={}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage