home/private_dot_local/script/executable_gamermode
2024-08-12 03:56:57 -05:00

23 lines
377 B
Bash

#!/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