added screen-blank command

This commit is contained in:
Felix Buehler 2017-07-08 01:04:51 +02:00
parent 6b471da4cd
commit c8fe5a68ae
2 changed files with 7 additions and 0 deletions

6
bin/screen-blank.sh Executable file
View 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

View file

@ -29,6 +29,7 @@
"~/.local/bin/host-is-on": "bin/host-is-on.sh",
"~/.local/bin/mdo": "bin/mdo.sh",
"~/.local/bin/mon-toggle": "bin/mon-toggle.sh",
"~/.local/bin/screen-blank": "bin/screen-blank.sh",
"~/.gitconfig": "git/gitconfig",
"~/.local/bin/diff-so-fancy": "git/diff-so-fancy/diff-so-fancy",
"~/.local/bin/diff-highlight": "git/diff-so-fancy/third_party/diff-highlight/diff-highlight",