mirror of
https://github.com/Stunkymonkey/dotfiles.git
synced 2025-05-24 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
|
|
@ -29,6 +29,7 @@
|
||||||
"~/.local/bin/host-is-on": "bin/host-is-on.sh",
|
"~/.local/bin/host-is-on": "bin/host-is-on.sh",
|
||||||
"~/.local/bin/mdo": "bin/mdo.sh",
|
"~/.local/bin/mdo": "bin/mdo.sh",
|
||||||
"~/.local/bin/mon-toggle": "bin/mon-toggle.sh",
|
"~/.local/bin/mon-toggle": "bin/mon-toggle.sh",
|
||||||
|
"~/.local/bin/screen-blank": "bin/screen-blank.sh",
|
||||||
"~/.gitconfig": "git/gitconfig",
|
"~/.gitconfig": "git/gitconfig",
|
||||||
"~/.local/bin/diff-so-fancy": "git/diff-so-fancy/diff-so-fancy",
|
"~/.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",
|
"~/.local/bin/diff-highlight": "git/diff-so-fancy/third_party/diff-highlight/diff-highlight",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue