Skip to content

Commit

Permalink
Add screenshot shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
zliebersbach committed Aug 6, 2016
1 parent a70822e commit 6a5bb78
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ require("temp")

-- This is used later as the default terminal and editor to run.
terminal = "x-terminal-emulator"
screenshot = "scrot -e \"mkdir -p ~/Pictures/Screenshots && mv $f ~/Pictures/Screenshots\""
editor = os.getenv("EDITOR") or "editor"
editor_cmd = terminal .. " -e " .. editor

Expand Down Expand Up @@ -325,7 +326,10 @@ globalkeys = awful.util.table.join(
end),
awful.key({ }, "XF86AudioMute", function ()
awful.util.spawn("amixer -q sset Master toggle", false)
end)
end),

-- Screenshot
awful.key({ }, "Print", function () awful.util.spawn(screenshot) end)
)

clientkeys = awful.util.table.join(
Expand Down

0 comments on commit 6a5bb78

Please sign in to comment.