From e9549ac910d9665a68902cfbbdcf428e3c04a5b2 Mon Sep 17 00:00:00 2001 From: PostCyberPunk Date: Wed, 17 Apr 2024 13:35:55 +0800 Subject: fxi:touchpad updated with new hyprlang --- config/hypr/scripts/TouchPad.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config/hypr/scripts') diff --git a/config/hypr/scripts/TouchPad.sh b/config/hypr/scripts/TouchPad.sh index 5119ac24..c5722c16 100755 --- a/config/hypr/scripts/TouchPad.sh +++ b/config/hypr/scripts/TouchPad.sh @@ -18,7 +18,7 @@ toggle_touchpad() { fi notify-send -u low -i "$notif" "Touchpad $action" - hyprctl keyword "device:$Touchpad_Device:enabled" "$(cat "$STATUS_FILE")" + hyprctl keyword "device[$Touchpad_Device]:enabled" "$(cat "$STATUS_FILE")" } toggle_touchpad -- cgit v1.2.3 From c561734c9de932c9e314be55505b1972fa5eed11 Mon Sep 17 00:00:00 2001 From: Levent Kaan Oğuz <54986478+LeventKaanOguz@users.noreply.github.com> Date: Sun, 21 Apr 2024 02:34:26 +0300 Subject: feat: Added Google search & shortcut for rofi --- config/hypr/configs/Keybinds.conf | 1 + config/hypr/scripts/KeyHints.sh | 66 +++++++++++++++++++-------------------- config/hypr/scripts/RofiSearch.sh | 3 ++ 3 files changed, 36 insertions(+), 34 deletions(-) create mode 100755 config/hypr/scripts/RofiSearch.sh (limited to 'config/hypr/scripts') 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={} -- cgit v1.2.3 From 3208ecfdfa18de1c6c3ffab309520e5459490828 Mon Sep 17 00:00:00 2001 From: "Ja.KooLit" Date: Sun, 21 Apr 2024 23:58:12 +0900 Subject: Update KeyHints.sh fix indention --- config/hypr/scripts/KeyHints.sh | 64 ++++++++++++++++++++--------------------- 1 file changed, 32 insertions(+), 32 deletions(-) (limited to 'config/hypr/scripts') diff --git a/config/hypr/scripts/KeyHints.sh b/config/hypr/scripts/KeyHints.sh index 13d4f1e6..796084b8 100755 --- a/config/hypr/scripts/KeyHints.sh +++ b/config/hypr/scripts/KeyHints.sh @@ -37,35 +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)" \ - " 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" "" +"ESC" "close this app" "" "=" "SUPER KEY (Windows Key)" "(SUPER KEY)" \ +" 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)" \ +" 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" ""\ -- cgit v1.2.3 From b24ec45d69d79e61bb075b9d77730514724d1aad Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Mon, 22 Apr 2024 00:16:35 +0900 Subject: updated Rofi Search and added a separate Rofi --- config/hypr/scripts/RofiSearch.sh | 9 +- config/rofi/config-search.rasi | 246 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 254 insertions(+), 1 deletion(-) create mode 100644 config/rofi/config-search.rasi (limited to 'config/hypr/scripts') diff --git a/config/hypr/scripts/RofiSearch.sh b/config/hypr/scripts/RofiSearch.sh index a16b52d8..13148455 100755 --- a/config/hypr/scripts/RofiSearch.sh +++ b/config/hypr/scripts/RofiSearch.sh @@ -1,3 +1,10 @@ +# /* ---- 💫 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. # -echo "" | rofi -dmenu -p "Search:" | xargs -I{} xdg-open https://www.google.com/search?q={} + +rofi_config="$HOME/.config/rofi/config-search.rasi" + +echo "" | rofi -dmenu -config "$rofi_config" -p "Search:" | xargs -I{} xdg-open https://www.google.com/search?q={} diff --git a/config/rofi/config-search.rasi b/config/rofi/config-search.rasi new file mode 100644 index 00000000..ce56ecd1 --- /dev/null +++ b/config/rofi/config-search.rasi @@ -0,0 +1,246 @@ +/* ---- 💫 https://github.com/JaKooLit 💫 ---- */ +/* Rofi Config for Google Search) */ + +/* ---- Configuration ---- */ +configuration { + modi: "drun,run,filebrowser"; + font: "Fira Code SemiBold 12"; + show-icons: true; + display-drun: ""; + display-run: ""; + display-filebrowser: ""; + display-window: "󱂬"; + drun-display-format: "{name}"; + hover-select: true; + me-select-entry: "MouseSecondary"; + me-accept-entry: "MousePrimary"; + window-format: "{w} · {c} · {t}"; + dpi: 1; + +} + +/* ---- Load pywal colors (custom wal template) ---- */ +@import "~/.config/rofi/pywal-color/pywal-theme.rasi" + +/* ---- Window ---- */ +window { + width: 600px; + /*height: 450px;*/ + x-offset: 0px; + y-offset: 0px; + spacing: 0px; + padding: 1px; + margin: 0px; + border: 2px; + border-color: @active-background; + cursor: "default"; + location: north; + anchor: center; + fullscreen: false; + enabled: true; + border-radius: 12px; + background-image: url("~/.config/rofi/.current_wallpaper", height); +} + +/* ---- Mainbox ---- */ +mainbox { + enabled: true; + orientation: vertical; + padding: 8px; + background-color: transparent; + children: [ "inputbar", "imagebox" ]; + border-radius: 12px; +} + +/* ---- Imagebox ---- */ +imagebox { + background-color: transparent; + orientation: horizontal; + children: [ "mode-switcher", "listbox"]; +} + +/* ---- Listbox ---- */ +listbox { + spacing: 4px; + orientation: vertical; + children: ["listview" ]; + padding: 6px; + border-radius: 12px; + border: 1px; + border-color: @active-background; + background-color: @background; +} + +/* ---- Dummy ---- */ +dummy { + background-color: transparent; +} + +/* ---- Inputbar ---- */ +inputbar { + enabled: true; + text-color: @foreground; + spacing: 10px; + border-radius: 12px; + border-color: @foreground; + background-color: @background; + children: [ "textbox-prompt-colon","entry" ]; + border: 1px; + border-color: @active-background; +} + +textbox-prompt-colon { + enabled: true; + padding: 6px 0px 6px 10px; + expand: false; + str: " 󰜏 "; + text-color: inherit; + background-color: transparent; +} + +entry { + enabled: true; + padding: 6px 0px 0px 0px; + text-color: inherit; + cursor: text; + placeholder: "Google Search"; + placeholder-color: inherit; + background-color: transparent; +} + +/* ---- Mode Switcher ---- */ +mode-switcher{ + orientation: vertical; + enabled: true; + spacing: 12px; + background-color: transparent; + text-color: @foreground; +} + +button { + padding: 0px 12px 0px 8px; + border-radius: 12px; + background-color: @background; + text-color: inherit; + cursor: pointer; + border: 1px; + border-color: @active-background; +} + +button selected { + background-color: @selected-normal-background; + text-color: @foreground; + border: 1px; + border-color: @background; + +} + +/* ---- Listview ---- */ +listview { + enabled: true; + columns: 2; + lines: 0; + spacing: 2px; + padding: 6px; + dynamic: true; + cycle: true; + scrollbar: false; + layout: vertical; + reverse: false; + fixed-height: true; + fixed-columns: false; + background-color: transparent; + border-radius: 12px; + border: 0px; +} + +/* ---- Element ---- */ +element { + enabled: true; + padding: 5px; + margin: 2px; + cursor: pointer; + background-color: transparent; + border-radius: 12px; + border: 0px; +} + +element normal.normal { + background-color: inherit; + text-color: @foreground; +} + +element normal.urgent { + background-color: inherit; + text-color: @foreground; +} + +element normal.active { + background-color: inherit; + text-color: @foreground; +} + +element selected.normal { + background-color: @selected-normal-background; + text-color: @foreground; +} + +element selected.urgent { + background-color: inherit; + text-color: @foreground; +} + +element selected.active { + background-color: inherit; + text-color: @foreground; +} + +element alternate.normal { + background-color: inherit; + text-color: @foreground; +} + +element alternate.urgent { + background-color: inherit; + text-color: @foreground; +} + +element alternate.active { + background-color: inherit; + text-color: @foreground; +} + +element-icon { + background-color: transparent; + text-color: inherit; + size: 32px; + cursor: inherit; +} + +element-text { + background-color: transparent; + text-color: inherit; + cursor: inherit; + vertical-align: 0.5; + horizontal-align: 0; +} + +/*****----- Message -----*****/ +message { + background-color: @background; + margin: 20px 0px 0px 0px; + border-radius: 12px; +} + +textbox { + padding: 10px; + background-color: @background; + text-color: @foreground; +} + +error-message { + padding: 15px; + border-radius: 12px; + background-color: @background; + text-color: @foreground; +} -- cgit v1.2.3