From e9549ac910d9665a68902cfbbdcf428e3c04a5b2 Mon Sep 17 00:00:00 2001 From: PostCyberPunk Date: Wed, 17 Apr 2024 13:35:55 +0800 Subject: [PATCH 1/7] fxi:touchpad updated with new hyprlang --- config/hypr/scripts/TouchPad.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/hypr/scripts/TouchPad.sh b/config/hypr/scripts/TouchPad.sh index 5119ac2..c5722c1 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 From 3677884067562f86f610381645121a762413bf31 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Sat, 20 Apr 2024 07:10:54 +0900 Subject: [PATCH 2/7] replace swww init with swww-daemon --format xrgb --- config/hypr/UserConfigs/Startup_Apps.conf | 4 ++-- config/hypr/UserScripts/WallpaperRandom.sh | 2 +- config/hypr/UserScripts/WallpaperSelect.sh | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/hypr/UserConfigs/Startup_Apps.conf b/config/hypr/UserConfigs/Startup_Apps.conf index 8ccbfa6..da0e156 100644 --- a/config/hypr/UserConfigs/Startup_Apps.conf +++ b/config/hypr/UserConfigs/Startup_Apps.conf @@ -9,7 +9,7 @@ $lock = $scriptsDir/LockScreen.sh $SwwwRandom = $UserScripts/WallpaperAutoChange.sh # wallpaper stuff / More wallpaper options below -exec-once = swww query || swww init +exec-once = swww query || swww-daemon --format xrgb exec-once = $SwwwRandom $wallDIR # random wallpaper switcher every 30 minutes # Startup @@ -42,7 +42,7 @@ exec-once = swayidle -w timeout 900 '$lock' #exec-once = swayidle -w timeout 900 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on' # Here are list of features available but disabled by default -#exec-once = swww query || swww init && swww img $HOME/Pictures/wallpapers/mecha-nostalgia.png # persistent wallpaper +#exec-once = swww query || swww swww-daemon --format xrgb && swww img $HOME/Pictures/wallpapers/mecha-nostalgia.png # persistent wallpaper #gnome polkit for nixos #exec-once = $scriptsDir/Polkit-NixOS.sh diff --git a/config/hypr/UserScripts/WallpaperRandom.sh b/config/hypr/UserScripts/WallpaperRandom.sh index 1737ddf..acc5047 100755 --- a/config/hypr/UserScripts/WallpaperRandom.sh +++ b/config/hypr/UserScripts/WallpaperRandom.sh @@ -17,7 +17,7 @@ BEZIER=".43,1.19,1,.4" SWWW_PARAMS="--transition-fps $FPS --transition-type $TYPE --transition-duration $DURATION --transition-bezier $BEZIER" -swww query || swww init && swww img ${RANDOMPICS} $SWWW_PARAMS +swww query || swww swww-daemon --format xrgb && swww img ${RANDOMPICS} $SWWW_PARAMS ${scriptsDir}/PywalSwww.sh diff --git a/config/hypr/UserScripts/WallpaperSelect.sh b/config/hypr/UserScripts/WallpaperSelect.sh index b833ec8..8aa9bdd 100755 --- a/config/hypr/UserScripts/WallpaperSelect.sh +++ b/config/hypr/UserScripts/WallpaperSelect.sh @@ -40,7 +40,7 @@ menu() { printf "$RANDOM_PIC_NAME\n" } -swww query || swww init +swww query || swww-daemon --format xrgb main() { choice=$(menu | ${rofi_command}) From 9e7b21bd113a2bf0de06cb8d06fc369167cd3a46 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Sat, 20 Apr 2024 07:57:46 +0900 Subject: [PATCH 3/7] added mauve style. thanks to @CelestiaKai --- config/waybar/style/Mauve.css | 258 ++++++++++++++++++++++++++++++++++ 1 file changed, 258 insertions(+) create mode 100644 config/waybar/style/Mauve.css diff --git a/config/waybar/style/Mauve.css b/config/waybar/style/Mauve.css new file mode 100644 index 0000000..86b6418 --- /dev/null +++ b/config/waybar/style/Mauve.css @@ -0,0 +1,258 @@ +/* ----------- 💫 https://github.com/JaKooLit 💫 -------- */ +/* ..........................................*/ +/* .......Mauve....................... */ +/* ......................................... */ +/* --- 👍 designed by https://github.com/CelestiaKai 👍 --- */ + +* { + font-family: "FiraCode Mono Nerd Font"; + font-weight: bold; + min-height: 0; + /* set font-size to 100% if font scaling is set to 1.00 using nwg-look */ + font-size: 97%; + font-feature-settings: '"zero", "ss01", "ss02", "ss03", "ss04", "ss05", "cv31"'; + padding: 2px; +} + +window#waybar { + background: #11111b; + color: #cba6f7; + /* background-color: transparent; */ +} + +window#waybar.hidden { + opacity: 0.5; +} + +window#waybar.empty { + background-color: transparent; + background: #11111b; +} + +window#waybar.empty #window { + padding: 0px; + border: 0px; + /* background-color: rgba(66,66,66,0.5); */ + /* transparent */ + background-color: transparent; +} + +tooltip { + background: #1e1e2e; + border-radius: 10px; + border-width: 2px; + border-style: solid; + border-color: #11111b; + color: #cba6f7; +} + +/*-----module groups----*/ +.modules-right { + border: 3px solid #11111b; + border-radius: 10px 10px 10px 10px; + background-color: #1e1e2e; + padding-top: 2px; + padding-bottom: 2px; + padding-right: 4px; + padding-left: 4px; +} + +.modules-center { + padding-top: 2px; + padding-bottom: 2px; + padding-right: 4px; + padding-left: 4px; +} + +.modules-left { + /*background-color: #1e1e2e;*/ + border: 3px solid #11111b; + border-radius: 10px 10px 10px 10px; + background-color: #1e1e2e; + padding-top: 2px; + padding-bottom: 2px; + padding-right: 4px; + padding-left: 4px; +} + +#workspaces button { + color: #6E6A86; + box-shadow: none; + text-shadow: none; + padding: 0px; + border-radius: 9px; + padding-left: 4px; + padding-right: 4px; + animation: gradient_f 20s ease-in infinite; + transition: all 0.5s cubic-bezier(.55,-0.68,.48,1.682); +} + +#workspaces button.active { + color: #1e1e1e; + border-radius: 30%; + background-color: #cba6f7; + padding-left: 6px; + padding-right: 8px; + animation: gradient_f 20s ease-in infinite; + transition: all 0.3s cubic-bezier(.55,-0.68,.48,1.682); +} + +#workspaces button.active:hover { + color: #1e1e1e; + border-radius: 30%; + background-color: #cba6f7; + border: 0px solid #1e1e2e; + padding-left: 6px; + padding-right: 8px; +} + +#workspaces button.focused { + color: #d8dee9; +} + +#workspaces button.urgent { + border-radius: 30%; + background-color: #cba6f7; + color: #1e1e1e; +} + +#workspaces button:hover { + color: #1e1e1e; + border: 3px solid #1e1e2e; + background-color: #cba6f7; + border-radius: 30%; + padding-left: 4px; + padding-right: 4px; + animation: gradient_f 20s ease-in infinite; + transition: all 0.3s cubic-bezier(.55,-0.68,.48,1.682); +} + +#backlight, +#backlight-slider, +#battery, +#bluetooth, +#clock, +#cpu, +#disk, +#idle_inhibitor, +#keyboard-state, +#memory, +#mode, +#mpris, +#network, +#pulseaudio, +#pulseaudio-slider, +#taskbar, +#temperature, +#tray, +#window, +#wireplumber, +#workspaces, +#custom-backlight, +#custom-cava_mviz, +#custom-cycle_wall, +#custom-keybinds, +#custom-keyboard, +#custom-light_dark, +#custom-lock, +#custom-menu, +#custom-power_vertical, +#custom-power, +#custom-swaync, +#custom-updater, +#custom-weather, +#custom-weather.clearNight, +#custom-weather.cloudyFoggyDay, +#custom-weather.cloudyFoggyNight, +#custom-weather.default, +#custom-weather.rainyDay, +#custom-weather.rainyNight, +#custom-weather.severe, +#custom-weather.showyIcyDay, +#custom-weather.snowyIcyNight, +#custom-weather.sunnyDay { + color: whitesmoke; + padding-top: 1px; + padding-bottom: 1px; + padding-right: 6px; + padding-left: 6px; + +} + +#temperature.critical { + background-color: #ff0000; +} + +@keyframes blink { + to { + color: #000000; + } +} + +#taskbar button.active { + background-color: purple; + padding-left: 12px; + padding-right: 12px; + animation: gradient_f 20s ease-in infinite; + transition: all 0.3s cubic-bezier(.55,-0.68,.48,1.682); +} + +#taskbar button:hover { + padding-left: 3px; + padding-right: 3px; + animation: gradient_f 20s ease-in infinite; + transition: all 0.3s cubic-bezier(.55,-0.68,.48,1.682); +} + +#battery.critical:not(.charging) { + color: #f53c3c; + animation-name: blink; + animation-duration: 0.5s; + animation-timing-function: linear; + animation-iteration-count: infinite; + animation-direction: alternate; +} + +#pulseaudio-slider slider { + min-width: 0px; + min-height: 0px; + opacity: 0; + background-image: none; + border: none; + box-shadow: none; +} + +#pulseaudio-slider trough { + min-width: 80px; + min-height: 5px; + border-radius: 5px; + background-color: #6E6A86; +} + +#pulseaudio-slider highlight { + min-height: 10px; + border-radius: 5px; + background-color: purple; +} + +#backlight-slider slider { + min-width: 0px; + min-height: 0px; + opacity: 0; + background-image: none; + border: none; + box-shadow: none; +} + +#backlight-slider trough { + min-width: 80px; + min-height: 10px; + border-radius: 5px; + background-color: #6E6A86; +} + +#backlight-slider highlight { + min-width: 10px; + border-radius: 5px; + background-color: purple; +} From c561734c9de932c9e314be55505b1972fa5eed11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Levent=20Kaan=20O=C4=9Fuz?= <54986478+LeventKaanOguz@users.noreply.github.com> Date: Sun, 21 Apr 2024 02:34:26 +0300 Subject: [PATCH 4/7] 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 diff --git a/config/hypr/configs/Keybinds.conf b/config/hypr/configs/Keybinds.conf index 5b8e5fd..1946cc2 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 f5be826..13d4f1e 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 0000000..a16b52d --- /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={} From e259d767b70efcb987dffb0a506ebed9e299dd44 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Sun, 21 Apr 2024 23:51:53 +0900 Subject: [PATCH 5/7] make rofi - Quick Edit case insensitive https://github.com/JaKooLit/Hyprland-Dots/pull/204 --- config/hypr/UserScripts/QuickEdit.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/hypr/UserScripts/QuickEdit.sh b/config/hypr/UserScripts/QuickEdit.sh index 163101e..658d7b0 100755 --- a/config/hypr/UserScripts/QuickEdit.sh +++ b/config/hypr/UserScripts/QuickEdit.sh @@ -17,7 +17,7 @@ menu(){ } main() { - choice=$(menu | rofi -dmenu -config ~/.config/rofi/config-compact.rasi | cut -d. -f1) + choice=$(menu | rofi -i -dmenu -config ~/.config/rofi/config-compact.rasi | cut -d. -f1) case $choice in 1) kitty -e nano "$UserConfigs/ENVariables.conf" From 3208ecfdfa18de1c6c3ffab309520e5459490828 Mon Sep 17 00:00:00 2001 From: "Ja.KooLit" Date: Sun, 21 Apr 2024 23:58:12 +0900 Subject: [PATCH 6/7] Update KeyHints.sh fix indention --- config/hypr/scripts/KeyHints.sh | 64 ++++++++++++++++----------------- 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/config/hypr/scripts/KeyHints.sh b/config/hypr/scripts/KeyHints.sh index 13d4f1e..796084b 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" ""\ From b24ec45d69d79e61bb075b9d77730514724d1aad Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Mon, 22 Apr 2024 00:16:35 +0900 Subject: [PATCH 7/7] 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 diff --git a/config/hypr/scripts/RofiSearch.sh b/config/hypr/scripts/RofiSearch.sh index a16b52d..1314845 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 0000000..ce56ecd --- /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; +}