icons: move icon lookup in a seperate module

This commit is contained in:
Vincent Bernat 2012-07-15 22:22:38 +02:00
parent 52090d90ea
commit 335b80262d
8 changed files with 104 additions and 26 deletions

View file

@ -1,8 +1,12 @@
-- Lockscreen
local icons = loadrc("icons", "vbe/icons")
xrun("xautolock",
"xautolock -notify 10 -notifier " ..
" 'notify-send Lock\\ screen -i /usr/share/icons/gnome/32x32/actions/system-lock-screen.png -t 10000 " ..
" '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'")