xautolock: use corners as hints
lock on top-right, disable lock on bottom-left mouse corner
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user