aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Runge <david.runge@frqrec.com>2014-02-25 23:41:47 +0100
committerDavid Runge <david.runge@frqrec.com>2014-02-25 23:41:47 +0100
commit742ce01ecdf7a3d1bc30cc1aee0cad345f119fce (patch)
tree01492fbba4435e708c3b050ad36d69d61c57add8
parentbd7247db1f404f7434110c9b6698e6171a064c23 (diff)
downloaddotfiles-742ce01ecdf7a3d1bc30cc1aee0cad345f119fce.tar.gz
dotfiles-742ce01ecdf7a3d1bc30cc1aee0cad345f119fce.tar.bz2
dotfiles-742ce01ecdf7a3d1bc30cc1aee0cad345f119fce.tar.xz
dotfiles-742ce01ecdf7a3d1bc30cc1aee0cad345f119fce.zip
Correcting DISPLAY export and if clause for grabbing former screensaver/dpms values
-rwxr-xr-xbin/adjust_dpms4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/adjust_dpms b/bin/adjust_dpms
index a54e539..0391dba 100755
--- a/bin/adjust_dpms
+++ b/bin/adjust_dpms
@@ -5,7 +5,7 @@
# Run as timed user script (i.e. adjust_dpms@.service) with systemd
# from /etc/systemd/system/timer-minutely.target.wants
-export DISPLAY=:0
+export DISPLAY=:0.0
config="/home/$(whoami)/.config/dpms"
blankoff=0
@@ -52,7 +52,7 @@ if [ $blankoff -gt 0 ]; then
else
xsetq=$(xset q|grep timeout|awk '{print $2}')
# if the timeout is still 0, set it to its former value, or just switch on screensaver/dpms again
- if [ $xsetq -eq 0 ];then
+ if [[ $xsetq -eq 0 ]];then
if [[ -f "$adjust_dpms" ]];then
xset $(head -n1 $adjust_dpms)
xset $(tail -n1 $adjust_dpms)