naelstrof / maim

maim (make image) takes screenshots of your desktop. It has options to take only a region, and relies on slop to query for regions. maim is supposed to be an improved scrot.
Other
2.15k stars 78 forks source link

Full screenshot only works with filepath argument #222

Closed rosshadden closed 3 years ago

rosshadden commented 3 years ago

I can only take a full screenshot if I pass a filepath.

These: work:

These do not work:

The working commands show that it's neither the "copy to clipboard" part nor taking a screenshot of my full desktop causing problems on their own. But using them together does not work for me.

This is the X error I get, though likely unhelpful:

X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  18 (X_ChangeProperty)
  Resource id in failed request:  0x1600037
  Serial number of failed request:  19
  Current serial number in output stream:  19
foxpy commented 3 years ago

Please try running

maim | file -
maim /dev/stdout | file -

These should work just fine with file indicating valid PNG image (and that means maim is working well).

Talking about X error you get, xclip always has been kinda unreliable application for me.

naelstrof commented 3 years ago

I tested all of these commands and they all appear to be working on the newest maim (v5.7.4) on x11. Maim doesn't work on wayland. Reopen if you still have trouble.