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.
This commit is contained in:
Vincent Bernat 2021-08-07 21:51:33 +02:00
parent 17b0e272ae
commit 34946de658

3
config
View file

@ -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"