mirror of
https://github.com/Stunkymonkey/dotfiles.git
synced 2025-05-25 03:14:39 +02:00
set dpms values via dpms command (hotfix)
This commit is contained in:
parent
91678a260f
commit
effc12b87e
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ alias ttime_black="sh -c \"sleep 300 && notify-send -u critical 'The tea is read
|
||||||
# set DPMS values in minutes
|
# set DPMS values in minutes
|
||||||
dpms(){
|
dpms(){
|
||||||
[ -z "${1}" ] && echo "No time given!" && return 1
|
[ -z "${1}" ] && echo "No time given!" && return 1
|
||||||
local secs=`expr "60*${1}"`
|
local secs=`expr "60" "*" "${1}"`
|
||||||
xset s off
|
xset s off
|
||||||
xset dpms "${secs}" "${secs}" "${secs}"
|
xset dpms "${secs}" "${secs}" "${secs}"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue