xlock: move xautolock and notify stuff into shell scripts

This commit is contained in:
Vincent Bernat 2012-09-15 10:04:34 +02:00
parent 55a342e987
commit c30c2062ad
3 changed files with 21 additions and 7 deletions

View file

@ -3,13 +3,9 @@
local icons = loadrc("icons", "vbe/icons")
xrun("xautolock",
"xautolock -notify 10 -notifier " ..
" 'notify-send Lock\\ screen -i " ..
icons.lookup({name = "system-lock-screen", type = "actions" }) ..
" -t 10000 " ..
" Lock\\ screen\\ will\\ be\\ started\\ in\\ 10\\ seconds...' " ..
" -time 3 -locker " ..
" 'i3lock -n -i " .. awful.util.getdir("cache") .. "/current-wallpaper.png'")
awful.util.getdir("config") ..
"/bin/xautolock " ..
icons.lookup({name = "system-lock-screen", type = "actions" }))
config.keys.global = awful.util.table.join(
config.keys.global,