aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLevent Kaan Oğuz <54986478+LeventKaanOguz@users.noreply.github.com>2024-04-21 02:34:26 +0300
committerLevent Kaan Oğuz <54986478+LeventKaanOguz@users.noreply.github.com>2024-04-21 02:34:26 +0300
commitc561734c9de932c9e314be55505b1972fa5eed11 (patch)
tree610d5d1885f2ec668086f2aa87a8561c0da89771
parent9e7b21bd113a2bf0de06cb8d06fc369167cd3a46 (diff)
feat: Added Google search & shortcut for rofi
-rw-r--r--config/hypr/configs/Keybinds.conf1
-rwxr-xr-xconfig/hypr/scripts/KeyHints.sh66
-rwxr-xr-xconfig/hypr/scripts/RofiSearch.sh3
3 files changed, 36 insertions, 34 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..13d4f1e6 100755
--- a/config/hypr/scripts/KeyHints.sh
+++ b/config/hypr/scripts/KeyHints.sh
@@ -37,37 +37,35 @@ yad --width=$dynamic_width --height=$dynamic_height \
--column=Description: \
--column=Command: \
--timeout-indicator=bottom \
-"ESC" "close this app" "" "=" "SUPER KEY (Windows Key)" "(SUPER KEY)" \
-" enter" "Terminal" "(kitty)" \
-" or  D" "App Launcher" "(rofi)" \
-" T" "Open File Manager" "(Thunar)" \
-" Q" "close active window" "(not kill)" \
-" Shift Q " "closes a specified window" "(window)" \
-" Alt V" "Clipboard Manager" "(cliphist)" \
-" W" "Choose wallpaper" "(Wallpaper Menu)" \
-"CTRL ALT W" "Random wallpaper" "(via swww)" \
-" B" "Hide/UnHide Waybar" "waybar" \
-" CTRL B" "Choose waybar styles" "(waybar styles)" \
-" ALT B" "Choose waybar layout" "(waybar layout)" \
-" ALT R" "Reload Waybar swaync Rofi" "CHECK NOTIFICATION FIRST!!!" \
-" SHIFT N" "Launch Notification Panel" "swaync Notification Center" \
-" Print" "screenshot" "(grim)" \
-" Shift Print" "screenshot region" "(grim + slurp)" \
-" Shift S" "screenshot region" "(swappy)" \
-"ALT Print" "Screenshot active window" "active window only" \
-"CTRL ALT P" "power-menu" "(wlogout)" \
-"CTRL ALT L" "screen lock" "(swaylock)" \
-"CTRL ALT Del" "Hyprland Exit" "(SAVE YOUR WORK!!!)" \
-" F" "Fullscreen" "Toggles to full screen" \
-" ALT L" "Toggle Dwindle | Master Layout" "Hyprland Layout" \
-" Shift F" "Toggle float" "single window" \
-" ALT F" "Toggle all windows to float" "all windows" \
-" Shift B" "Toggle Blur" "normal or less blur" \
-" SHIFT G" "Gamemode! All animations OFF or ON" "toggle" \
-" H" "Launch this app" "" \
-" E" "View or EDIT Keybinds, Settings, Monitor" "" \
-"" "" "" \
-"More tips:" "https://github.com/JaKooLit/Hyprland-Dots/wiki" ""\
-
-
-
+ "ESC" "close this app" "" "=" "SUPER KEY (Windows Key)" "(SUPER KEY)" \
+ " enter" "Terminal" "(kitty)" \
+ " or  D" "App Launcher" "(rofi)" \
+ " S" "Google Search" "(rofi)" \
+ " T" "Open File Manager" "(Thunar)" \
+ " Q" "close active window" "(not kill)" \
+ " Shift Q " "closes a specified window" "(window)" \
+ " Alt V" "Clipboard Manager" "(cliphist)" \
+ " W" "Choose wallpaper" "(Wallpaper Menu)" \
+ "CTRL ALT W" "Random wallpaper" "(via swww)" \
+ " B" "Hide/UnHide Waybar" "waybar" \
+ " CTRL B" "Choose waybar styles" "(waybar styles)" \
+ " ALT B" "Choose waybar layout" "(waybar layout)" \
+ " ALT R" "Reload Waybar swaync Rofi" "CHECK NOTIFICATION FIRST!!!" \
+ " SHIFT N" "Launch Notification Panel" "swaync Notification Center" \
+ " Print" "screenshot" "(grim)" \
+ " Shift Print" "screenshot region" "(grim + slurp)" \
+ " Shift S" "screenshot region" "(swappy)" \
+ "ALT Print" "Screenshot active window" "active window only" \
+ "CTRL ALT P" "power-menu" "(wlogout)" \
+ "CTRL ALT L" "screen lock" "(swaylock)" \
+ "CTRL ALT Del" "Hyprland Exit" "(SAVE YOUR WORK!!!)" \
+ " F" "Fullscreen" "Toggles to full screen" \
+ " ALT L" "Toggle Dwindle | Master Layout" "Hyprland Layout" \
+ " Shift F" "Toggle float" "single window" \
+ " ALT F" "Toggle all windows to float" "all windows" \
+ " Shift B" "Toggle Blur" "normal or less blur" \
+ " SHIFT G" "Gamemode! All animations OFF or ON" "toggle" \
+ " H" "Launch this app" "" \
+ " 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