Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 13 lines (12 sloc) 237 Bytes
#!/bin/bash
if [[ "$(xset q | grep "DPMS is")" == *"Enabled" ]]; then
xset s off
xset -dpms
notify-send "caffeine on"
else
xset s on
xset +dpms
xset s on
xset dpms 300 # 5min
notify-send "caffeine off"
fi