mirror of
https://github.com/Stunkymonkey/dotfiles.git
synced 2025-05-25 19:14:39 +02:00
added screen-blank command
This commit is contained in:
parent
6b471da4cd
commit
c8fe5a68ae
2 changed files with 7 additions and 0 deletions
6
bin/screen-blank.sh
Executable file
6
bin/screen-blank.sh
Executable file
|
@ -0,0 +1,6 @@
|
|||
DUR="$(xset q | grep Standby | cut -d' ' -f4)"
|
||||
xset s off
|
||||
case $DUR in
|
||||
7200) xset dpms 900 900 900;echo "Screen blank set to 15 mins.";;
|
||||
*) xset dpms 7200 7200 7200;echo "Screen blank set to 2 hours.";;
|
||||
esac
|
Loading…
Add table
Add a link
Reference in a new issue