From 5275a77cd3db04527c98defa000d9c23f65997db Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Wed, 11 Jul 2012 10:01:53 +0200 Subject: [PATCH] xlock: display a notification 10 seconds before kicking i3lock --- rc/xlock.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/rc/xlock.lua b/rc/xlock.lua index 071efbb..40fe2cd 100644 --- a/rc/xlock.lua +++ b/rc/xlock.lua @@ -1,8 +1,11 @@ -- Lockscreen xrun("xautolock", - "xautolock -time 3 -locker 'i3lock -n -i " .. - awful.util.getdir("cache") .. "/current-wallpaper.png'") + "xautolock -notify 10 -notifier " .. + " 'notify-send Lock\ screen -i /usr/share/icons/gnome/32x32/actions/system-lock-screen.png -t 10000 " .. + " Lock\ screen\ will\ be\ started\ in\ 10\ seconds...' " .. + " -time 3 -locker " .. + " 'i3lock -n -i " .. awful.util.getdir("cache") .. "/current-wallpaper.png'") config.keys.global = awful.util.table.join( config.keys.global,