|
@@ -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
|
|
|
;;
|