diff --git a/config/keys.lua b/config/keys.lua index 57ec315c..87fb798f 100644 --- a/config/keys.lua +++ b/config/keys.lua @@ -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() @@ -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 " @@ -673,7 +686,7 @@ function keys.init(awesome_context) .. "'" ) end, - "screenshot focused", SCREENSHOT + "screenshot focused and open", SCREENSHOT ), bind_key({ "Control", altkey }, "Print", function ()