added modules to waybar
This commit is contained in:
7
waybar/scripts/gamemode_status.sh
Executable file
7
waybar/scripts/gamemode_status.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/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
|
Reference in New Issue
Block a user