From 7f945d31433c7faee5d6fa3a547b62c801d7e91a Mon Sep 17 00:00:00 2001 From: Stephan Raabe Date: Wed, 5 Jun 2024 08:55:24 +0200 Subject: [PATCH] Updates --- hypr/scripts/gamemode.sh | 15 ++++++++++----- waybar/modules.json | 2 ++ 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/hypr/scripts/gamemode.sh b/hypr/scripts/gamemode.sh index 3ed36ce..815a780 100755 --- a/hypr/scripts/gamemode.sh +++ b/hypr/scripts/gamemode.sh @@ -7,13 +7,18 @@ # if [ -f ~/.cache/gamemode ] ;then - hyprctl keyword animations:enabled true - hyprctl keyword decoration:blur:enabled true + hyprctl reload rm ~/.cache/gamemode notify-send "Gamemode deactivated" "Animations and blur enabled" else - hyprctl keyword animations:enabled false - hyprctl keyword decoration:blur:enabled false - touch ~/.cache/gamemode + hyprctl --batch "\ + keyword animations:enabled 0;\ + keyword decoration:drop_shadow 0;\ + keyword decoration:blur:enabled 0;\ + keyword general:gaps_in 0;\ + keyword general:gaps_out 0;\ + keyword general:border_size 1;\ + keyword decoration:rounding 0" + touch ~/.cache/gamemode notify-send "Gamemode activated" "Animations and blur disabled" fi diff --git a/waybar/modules.json b/waybar/modules.json index 3bd41aa..c11a432 100644 --- a/waybar/modules.json +++ b/waybar/modules.json @@ -11,6 +11,8 @@ { // Workspaces "hyprland/workspaces" : { + "on-scroll-up": "hyprctl dispatch workspace r-1", + "on-scroll-down": "hyprctl dispatch workspace r+1", "on-click": "activate", "active-only": false, "all-outputs": true,