From 357eff252584dd481f5c6fc294c23cc9d54aa8c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Tue, 15 Oct 2024 21:55:02 +0300 Subject: [PATCH] scrot: compress png after all --- modules/profiles/desktop/rc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/profiles/desktop/rc.lua b/modules/profiles/desktop/rc.lua index 19cac92..8617d9b 100644 --- a/modules/profiles/desktop/rc.lua +++ b/modules/profiles/desktop/rc.lua @@ -234,7 +234,7 @@ 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'") + 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'") end), awful.key({ modkey, }, "Left", awful.tag.viewprev, {description = "view previous", group = "tag"}),