mirror of
https://github.com/Stunkymonkey/dotfiles.git
synced 2025-05-25 19:14:39 +02:00
set dpms values via dpms command
This commit is contained in:
parent
e20d9b8fde
commit
91678a260f
1 changed files with 8 additions and 0 deletions
|
@ -108,6 +108,14 @@ alias dotfile-update-submodules='cd ~/.dotfiles/ && git submodule foreach git pu
|
|||
alias ttime_green="sh -c \"sleep 180 && notify-send -u critical 'The tea is ready'\" &"
|
||||
alias ttime_black="sh -c \"sleep 300 && notify-send -u critical 'The tea is ready'\" &"
|
||||
|
||||
# set DPMS values in minutes
|
||||
dpms(){
|
||||
[ -z "${1}" ] && echo "No time given!" && return 1
|
||||
local secs=`expr "60*${1}"`
|
||||
xset s off
|
||||
xset dpms "${secs}" "${secs}" "${secs}"
|
||||
}
|
||||
|
||||
# scan your local network with nmap
|
||||
#
|
||||
# usage:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue