Files
Arch_Hyprland_dots/.config/scripts/gamemode.sh
T
2026-01-29 14:14:34 +03:00

23 lines
735 B
Bash

#!/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