scrot + clipboard improvements

This commit is contained in:
Motiejus Jakštys 2024-10-16 11:10:04 +03:00
parent 357eff2525
commit 47baee883e

View File

@ -234,7 +234,12 @@ globalkeys = gears.table.join(
--awful.key({ modkey, }, "s", hotkeys_popup.show_help, --awful.key({ modkey, }, "s", hotkeys_popup.show_help,
-- {description="show help", group="awesome"}), -- {description="show help", group="awesome"}),
awful.key({ modkey }, "s", function() awful.key({ modkey }, "s", function()
awful.spawn.with_shell("scrot --select --file '%F_%T_$wx$h.png' --exec 'xclip -selection clipboard -target image/png -i $f && zopflipng -y $f $f'") awful.spawn.with_shell([[
scrot --select --file '%F_%T_$wx$h.png' --exec '\
xclip -selection clipboard -target image/png -i $f && \
zopflipng -y $f $f && \
xclip -selection clipboard -target image/png -i $f'
]])
end), end),
awful.key({ modkey, }, "Left", awful.tag.viewprev, awful.key({ modkey, }, "Left", awful.tag.viewprev,
{description = "view previous", group = "tag"}), {description = "view previous", group = "tag"}),