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.16k stars 79 forks source link

Misleading shader documentation #161

Open wallace11 opened 5 years ago

wallace11 commented 5 years ago
$ maim --version    
v5.5

From man maim:

-r, --shader=STRING This sets the vertex shader, and fragment shader combo to use when drawing the final framebuffer to the screen. This obviously only works when OpenGL is enabled. The shaders are loaded from ~/.config/maim. See https://github.com/naelstrof/slop for more information on how to create your own shaders.

However, maim would load shaders only from ~/.config/slop. An example trying to run crosshair:

$ maim -sr crosshair
terminate called after throwing an instance of 'std::runtime_error'
  what():  The file or folder crosshair.vert was not found in ~/.config/slop/

[1]    5675 abort (core dumped)  maim -sr crosshair
$ ls ~/.config/maim
crosshair.frag  crosshair.vert
naelstrof commented 5 years ago

Ooof, yeah you're right. Side effect of replacing all instances of slop with maim to generate the documentation.

I'll have to fix it a bit later, can't just text edit this fix due to the compressed manpages.

emilio1625 commented 5 years ago

Hi, I'm trying to use the blur shader to blur the screenshot but it seems like it doesn't work, are the shaders actually use to make the screenshot or are only use when selecting the window?

naelstrof commented 5 years ago

Hi, I'm trying to use the blur shader to blur the screenshot but it seems like it doesn't work, are the shaders actually use to make the screenshot or are only use when selecting the window?

They're only used for selecting the window. If you want it to affect the screenshot you could do some post processing with tools like imagemagick or you could try to run maim while slop is running.