diff options
| author | Ja.KooLit <jimmielovejay@gmail.com> | 2024-04-21 23:59:12 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-21 23:59:12 +0900 |
| commit | 15fb0732c99cb63ec3997210053373704de0eec2 (patch) | |
| tree | 20c73e6b7bbc250645f6f7b59ccb78c0a53d84b7 | |
| parent | e259d767b70efcb987dffb0a506ebed9e299dd44 (diff) | |
| parent | 3208ecfdfa18de1c6c3ffab309520e5459490828 (diff) | |
Merge pull request #203 from LeventKaanOguz/rofi-google-test
Adding Google Search to rofi indirectly
| -rw-r--r-- | config/hypr/configs/Keybinds.conf | 1 | ||||
| -rwxr-xr-x | config/hypr/scripts/KeyHints.sh | 4 | ||||
| -rwxr-xr-x | config/hypr/scripts/RofiSearch.sh | 3 |
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={} |
