Skip to content

Commit

Permalink
feat(config: keys): add screenshot focused{, and open}
Browse files Browse the repository at this point in the history
  • Loading branch information
actionless committed Dec 15, 2024
1 parent 978ee70 commit e1db2b8
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion config/keys.lua
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,10 @@ function keys.init(awesome_context)
nil, mpv.play_browser_url,
{description="mpv-xsel from browser", group=PROGRAMS}
),
bind_key({ modkey, }, "e",
function() awful.spawn{"emote"} end,
"emote", PROGRAMS
),

bind_key({ modkey, "Control" }, "r",
function()
Expand All @@ -665,6 +669,15 @@ function keys.init(awesome_context)

-- Scrot stuff
bind_key({ "Control" }, "Print",
function ()
awful.spawn.with_shell(
"scrot -ub '%Y-%m-%d--%s_$wx$h_scrot.png' -e "
.. "'mv $f ~/images/'"
)
end,
"screenshot focused", SCREENSHOT
),
bind_key({ "Control", "Shift" }, "Print",
function ()
awful.spawn.with_shell(
"scrot -ub '%Y-%m-%d--%s_$wx$h_scrot.png' -e "
Expand All @@ -673,7 +686,7 @@ function keys.init(awesome_context)
.. "'"
)
end,
"screenshot focused", SCREENSHOT
"screenshot focused and open", SCREENSHOT
),
bind_key({ "Control", altkey }, "Print",
function ()
Expand Down

0 comments on commit e1db2b8

Please sign in to comment.