From 34946de6580f405db30a8dfc508b2849227f3735 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sat, 7 Aug 2021 21:51:33 +0200 Subject: [PATCH] i3: use maim for screenshots No need for a complex tool like Flameshot. It is nice to have, but it doesn't allow me to select a window... Most of the time, I need a window or an area to the clipboard. Sometimes, I need a quick screenshot of the whole screen. --- config | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config b/config index 877add5..c2cb199 100644 --- a/config +++ b/config @@ -138,7 +138,8 @@ bindsym $mod+Shift+r restart # Lock screen and print screen bindsym XF86ScreenSaver exec --no-startup-id exec xset s activate bindsym $mod+Delete exec --no-startup-id exec xset s activate -bindsym Print exec --no-startup-id flameshot gui +bindsym Print exec --no-startup-id "maim -u -s -b 5 -l -c 0.3,0.4,0.6,0.4 | xclip -selection clipboard -t image/png" +bindsym $mod+Print exec --no-startup-id "maim -u -m 8 ~/.config/i3/screenshots/$(date -Iseconds).jpg" # Quake window bindsym $mod+grave nop "quake-console:$term:QuakeConsoleNeedsUniqueName:0.3"