home/.local/script/gamermode

21 lines
330 B
Bash
Executable File

#!/bin/bash
gamermode_off(){
notify-send -t 1600 'disabled gamermode' --icon=video-display
picom -b --log-file /var/log/picom.log --log-level INFO
}
gamermode_on(){
notify-send -t 1600 'enabled gamermode' --icon=video-display
killall picom;
}
if [ `pgrep -x picom` ]; then
gamermode_on
else
gamermode_off
fi
exit