浏览代码

Slightly fix lock-screen

Samuel W. Flint 1 年之前
父节点
当前提交
9c2f7725ec
共有 1 个文件被更改,包括 3 次插入1 次删除
  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
         ;;