0

I have been using Sway on Wayland for the last couple of years, but am currently stuck on X11/i3 due to various reasons...

The configs are compatible for the most part, but I am having trouble getting screenshots to work.

What is the easiest way I can replicate the functionality of grim and slurp in my i3 config?

This was my config line in Sway:

bindsym $mod+Shift+s exec grim -g "$(slurp)" - | wl-copy

Ideally I'd have something that works exactly the same...

Dave M
  • 13,250
Ruslan
  • 111

1 Answers1

2

For X11, I use maim. Below is the i3 commands I have if you want to have the clipboard functionality.

bindsym Print exec "maim | xclip -selection clipboard -t image/png"
bindsym $mod+s exec "maim -s | xclip -selection clipboard -t image/png"