home/private_dot_local/script/executable_gamermode

23 lines
377 B
Plaintext
Raw Normal View History

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