From 47baee883ea71b772357d55ad280bc614766e804 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Wed, 16 Oct 2024 11:10:04 +0300 Subject: [PATCH] scrot + clipboard improvements --- modules/profiles/desktop/rc.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/profiles/desktop/rc.lua b/modules/profiles/desktop/rc.lua index 8617d9b..a1862c4 100644 --- a/modules/profiles/desktop/rc.lua +++ b/modules/profiles/desktop/rc.lua @@ -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"}),