set dpms values via dpms command (hotfix)

This commit is contained in:
Benedikt Heine 2017-07-15 21:42:00 +02:00 committed by Felix Buehler
parent 91678a260f
commit effc12b87e

View file

@ -111,7 +111,7 @@ alias ttime_black="sh -c \"sleep 300 && notify-send -u critical 'The tea is read
# set DPMS values in minutes
dpms(){
[ -z "${1}" ] && echo "No time given!" && return 1
local secs=`expr "60*${1}"`
local secs=`expr "60" "*" "${1}"`
xset s off
xset dpms "${secs}" "${secs}" "${secs}"
}