dotfiles/home/dot_config/sway/scripts/executable_gamemode.sh

11 lines
198 B
Bash
Raw Normal View History

2023-05-20 09:16:45 -07:00
#!/usr/bin/env bash
status=$(gamemoded -s)
if [ "$status" == "gamemode is inactive" ]; then
gamemoded -r &
2023-06-19 17:21:34 -07:00
killall swayidle
2023-05-20 09:16:45 -07:00
else
killall gamemoded
2023-06-19 17:21:34 -07:00
~/.config/sway/scripts/idle.sh
2023-05-20 09:16:45 -07:00
fi