diff options
| author | Ja.KooLit <jimmielovejay@gmail.com> | 2023-12-17 16:15:04 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-17 16:15:04 +0900 |
| commit | f6cac04f24927419aba506e7bb51dd085f8aa8c2 (patch) | |
| tree | 650e29a07cb52ff7973361f92968ece49ea19066 /config/hypr/scripts/GameMode.sh | |
| parent | 948d1db075ec815983628ebf467d0d49bbe1b5e4 (diff) | |
| parent | 338f213dd13ba560a08440d66302c96eea59d6de (diff) | |
Merge pull request #78 from JaKooLit/Development
some small tweaks
Diffstat (limited to 'config/hypr/scripts/GameMode.sh')
| -rwxr-xr-x | config/hypr/scripts/GameMode.sh | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/config/hypr/scripts/GameMode.sh b/config/hypr/scripts/GameMode.sh index ecdcfb8b..50aed7cf 100755 --- a/config/hypr/scripts/GameMode.sh +++ b/config/hypr/scripts/GameMode.sh @@ -1,16 +1,27 @@ #!/bin/bash + +dunst_notif="$HOME/.config/dunst/images/bell.png" +SCRIPTSDIR="$HOME/.config/hypr/scripts" + + HYPRGAMEMODE=$(hyprctl getoption animations:enabled | awk 'NR==2{print $2}') if [ "$HYPRGAMEMODE" = 1 ] ; then hyprctl --batch "\ keyword animations:enabled 0;\ keyword decoration:drop_shadow 0;\ - keyword decoration:blur 0;\ + keyword decoration:blur:passes 0;\ keyword general:gaps_in 0;\ keyword general:gaps_out 0;\ keyword general:border_size 1;\ keyword decoration:rounding 0" swww kill - notify-send "animations off" + dunstify -u low -i "$dunst_notif" "animations off" + exit +else + swww init && swww img "$HOME/.config/rofi/.current_wallpaper" + sleep 0.5 + ${SCRIPTSDIR}/RefreshNoWaybar.sh + dunstify -u low -i "$dunst_notif" "Animations turned on" exit fi -hyprctl reload +hyprctl reload |
