PrintScreen key added (xsnap).

This commit is contained in:
Kolan Sh 2013-04-16 11:11:17 +04:00
parent 609dbd7cc9
commit 11c4af84a9
1 changed files with 7 additions and 0 deletions

7
rc.lua
View File

@ -503,6 +503,13 @@ clientbuttons = awful.util.table.join(
awful.button({ modkey }, 3, awful.mouse.client.resize)
)
-- PrintScreen keys --
globalkeys = awful.util.table.join(globalkeys,
awful.key({ }, "Print",
function () awful.util.spawn_with_shell ("DATE=`date +%d%m%Y_%H%M%S`;"..
"xsnap -nogui -file $HOME/screenshots/xsnap$DATE && gqview -r $HOME/screenshots/xsnap$DATE.png") end)
)
-- Set keys
root.keys(globalkeys)