浏览代码

~/.config/awesome/rc.lua: Add shortcut to take screenshots.

Lucas Stadler 13 年之前
父节点
当前提交
1d30ada509
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      .config/awesome/rc.lua

+ 3 - 0
.config/awesome/rc.lua

@ -253,6 +253,9 @@ globalkeys = awful.util.table.join(
253 253
    awful.key({ modkey, "Shift" }, "l", function() os.execute("slock") end),
254 254
    awful.key({ modkey }, "b", function() awful.util.spawn("chromium --allow-file-access-from-files", false) end),
255 255
    awful.key({ modkey, "Shift" }, "b", function() awful.util.spawn("chromium --incognito --allow-file-access-from-files", false) end),
256
    awful.key({ }, "Print", function ()
257
        awful.util.spawn("scrot -e 'mv $f ~/m/pictures/ 2>/dev/null'")
258
    end),
256 259
257 260
	 awful.key({ }, "XF86AudioMute", function() os.execute("amixer set Master toggle") end),
258 261
    awful.key({ }, "XF86AudioLowerVolume", function() os.execute("amixer set Master 5%-") end),