Create gamemode.sh

This commit is contained in:
FURK4NGG
2026-01-29 14:14:34 +03:00
committed by GitHub
parent bcbea90bdf
commit 1be7c36758
+22
View File
@@ -0,0 +1,22 @@
#!/bin/bash
STATE_FILE="$HOME/.cache/toggle-gamemode-state"
if [ -f "$STATE_FILE" ]; then
# İkinci basış (state varsa)
rm "$STATE_FILE"
hyprctl keyword decoration:blur:enabled true
hyprctl keyword animations:enabled true
hyprctl keyword general:allow_tearing false
hyprctl keyword decoration:drop_shadow false
notify-send "Game Mode" "game mode is deactive"
hyprctl dispatch submap reset
else
touch "$STATE_FILE"
hyprctl keyword decoration:blur:enabled false
hyprctl keyword animations:enabled false
hyprctl keyword general:allow_tearing true
hyprctl keyword decoration:drop_shadow false
notify-send "Game Mode" "game mode is active"
hyprctl dispatch submap gamemode
fi