From 0e57120f6c980b7e6cb4c7b4c9b1287409c3ef9f Mon Sep 17 00:00:00 2001 From: Ayush Dumasia Date: Sun, 11 May 2025 09:23:29 +0530 Subject: [PATCH] Special Workspace in hyprland --- hypr/hyprland.conf | 6 +++--- rofi/powermenu/powermenu.sh | 14 +++----------- waybar/style.css | 4 ++-- 3 files changed, 8 insertions(+), 16 deletions(-) diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf index 50ad52f..94cece6 100644 --- a/hypr/hyprland.conf +++ b/hypr/hyprland.conf @@ -274,7 +274,7 @@ bind = Alt Shift, Tab, cyclenext, prev # bind = $mainMod, Tab, workspace, e-2 bind = $mainMod, A, exec,bash ~/.config/rofi/wifi/wifi.sh -bind = $mainMod, S, exec,bash ~/.config/rofi/search/search.sh +#bind = $mainMod, S, exec,bash ~/.config/rofi/search/search.sh @@ -310,8 +310,8 @@ bind = $mainMod SHIFT, 0, movetoworkspace, 10 # Example special workspace (scratchpad) -#bind = $mainMod, S, togglespecialworkspace, magic -#bind = $mainMod SHIFT, S, movetoworkspace, special:magic +bind = $mainMod, S, togglespecialworkspace, magic +bind = $mainMod SHIFT, E, movetoworkspace, special:magic # Scroll through existing workspaces with mainMod + scroll bind = $mainMod, mouse_down, workspace, e+1 diff --git a/rofi/powermenu/powermenu.sh b/rofi/powermenu/powermenu.sh index 6bde34c..d3fdf16 100755 --- a/rofi/powermenu/powermenu.sh +++ b/rofi/powermenu/powermenu.sh @@ -62,22 +62,14 @@ run_cmd() { elif [[ $1 == '--reboot' ]]; then systemctl reboot elif [[ $1 == '--hibernate' ]]; then - systemctl hibernate + systemctl suspend elif [[ $1 == '--suspend' ]]; then mpc -q pause amixer set Master mute systemctl suspend elif [[ $1 == '--logout' ]]; then - if [[ "$DESKTOP_SESSION" == 'openbox' ]]; then - openbox --exit - elif [[ "$DESKTOP_SESSION" == 'bspwm' ]]; then - bspc quit - elif [[ "$DESKTOP_SESSION" == 'i3' ]]; then - i3-msg exit - elif [[ "$DESKTOP_SESSION" == 'plasma' ]]; then - qdbus org.kde.ksmserver /KSMServer logout 0 0 0 - fi - fi + hyprctl dispatch exit + fi else exit 0 fi diff --git a/waybar/style.css b/waybar/style.css index 7784cbf..a2c8943 100644 --- a/waybar/style.css +++ b/waybar/style.css @@ -86,7 +86,7 @@ menu, font-weight: bold; font-style: normal; opacity: 1; - font-size: 16px; + font-size: 20px; color: #1e1; border-radius: 6px; } @@ -110,7 +110,7 @@ menu, } #workspaces button:hover { - color: #c3dee5; + color: @cerise; background: #1e1e2e; opacity: 1; animation: none;