xautolock: use corners as hints

lock on top-right, disable lock on bottom-left mouse corner
This commit is contained in:
2013-12-30 10:42:58 +03:00
parent bbf5ceec40
commit 7cb3e0bd04
2 changed files with 6 additions and 3 deletions
+5 -1
View File
@@ -25,7 +25,11 @@ eval $(gnome-keyring-daemon --start --components=gpg,pkcs11,secrets,ssh)
export GNOME_KEYRING_CONTROL GNOME_KEYRING_PID GPG_AGENT_INFO SSH_AUTH_SOCK
(
xautolock -noclose -locker '~/bin/screensaver start' -notify 5 -notifier '~/bin/screensaver notify 5' &
xautolock \
-noclose \
-locker '~/bin/screensaver start' \
-notify 5 -notifier '~/bin/screensaver notify 5' \
-corners 0+-0 -cornerdelay 1 -cornerredelay 300 &
dunst &
gtk-redshift &
skype &
+1 -2
View File
@@ -3,10 +3,9 @@
if [ "$1" = "notify" ]; then
# notify-send help says timeout is in milliseconds
# but it appears that it is really in seconds (is it a dunst bug?)
notify-send -t $[$2-1] "Activating screensaver in $2 seconds..."
[ $2 -gt 1 ] && notify-send -t $[$2-1] "Activating screensaver in $2 seconds..."
else
killall -USR1 dunst
notify_suspend
slock &
slock_pid=$!
# for xautolock -unlocknow