Browse Source

Slightly fix lock-screen

Samuel W. Flint 1 year ago
parent
commit
9c2f7725ec
1 changed files with 3 additions and 1 deletions
  1. 3 1
      lock-screen

+ 3 - 1
lock-screen

@@ -20,6 +20,7 @@ case ${1} in
     daemon)
         [ -e ~/.xidlehook.sock ] && rm ~/.xidlehook.sock
         echo "Starting xidlehook"
+	echo "DISPLAY=${DISPLAY}"
         xidlehook --socket ~/.xidlehook.sock \
                   --not-when-fullscreen \
                   --not-when-audio \
@@ -29,7 +30,8 @@ case ${1} in
     start)
         if ! ps aux | grep ' [x]idlehook ' > /dev/null ; then
             if ! tmux has-session -t 'screenlocker' ; then
-                tmux new-session -s 'screenlocker' -n 'screenlocker' -d "$SHELL -c 'lock-screen daemon'"
+                tmux new-session -s 'screenlocker' -n 'screenlocker' \
+		     -d "$SHELL -c 'lock-screen daemon'"
             fi
         fi
         ;;