Files
dotfiles-ndesk/waybar/scripts/gamemode_status.sh
2025-08-09 15:32:12 +02:00

8 lines
288 B
Bash
Executable File

#!/usr/bin/env sh
HYPRGAMEMODE=$(hyprctl getoption animations:enabled | awk 'NR==1{print $2}')
if [ "$HYPRGAMEMODE" = 1 ] ; then
echo '{"text": "Gamemode", "tooltip": "Gamemode deactivated"}'
else
echo '{"text": "Gamemode", "tooltip": "Gamemode activated", "class": "active"}'
fi