From a614177fb9a11512e6efc7283d7e30b053429350 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Tue, 15 Oct 2024 14:27:39 +0300 Subject: [PATCH] screenshot capture --- modules/profiles/desktop/default.nix | 1 + modules/profiles/desktop/rc.lua | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/profiles/desktop/default.nix b/modules/profiles/desktop/default.nix index a795dfd..f4f4a3d 100644 --- a/modules/profiles/desktop/default.nix +++ b/modules/profiles/desktop/default.nix @@ -153,6 +153,7 @@ in xclip pdftk putty + scrot tracy x11vnc yt-dlp diff --git a/modules/profiles/desktop/rc.lua b/modules/profiles/desktop/rc.lua index 00b2d85..b0c659f 100644 --- a/modules/profiles/desktop/rc.lua +++ b/modules/profiles/desktop/rc.lua @@ -231,8 +231,11 @@ root.buttons(gears.table.join( -- {{{ Key bindings globalkeys = gears.table.join( - awful.key({ modkey, }, "s", hotkeys_popup.show_help, - {description="show help", group="awesome"}), + --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 '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"}), awful.key({ modkey, }, "Right", awful.tag.viewnext,