scrot + clipboard improvements

This commit is contained in:
Motiejus Jakštys 2024-10-16 11:10:04 +03:00
parent 357eff2525
commit 47baee883e
1 changed files with 6 additions and 1 deletions

View File

@ -234,7 +234,12 @@ globalkeys = gears.table.join(
--awful.key({ modkey, }, "s", hotkeys_popup.show_help,
-- {description="show help", group="awesome"}),
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),
awful.key({ modkey, }, "Left", awful.tag.viewprev,
{description = "view previous", group = "tag"}),