zoltanp / xrandr-invert-colors

Small utility for inverting the colors on all monitors attached to an XRandR-capable X11 display server.
119 stars 16 forks source link

devilspie support #6

Open sharethewisdom opened 9 years ago

sharethewisdom commented 9 years ago

hello, I haven't tested this utility thoroughly, but I can imagine that there is a demand for inverted colors on an application-instance basis. For instance, inverting colors on a specific workspace when a specific window has focus on a specified monitor could be usefull. Specifically, I would like to be able to invert the display using devilspie only when firefox is focused, not when the "plugin-container" is focused. Could such an application of this utility be of interest?

gavinengel commented 9 years ago

I'd be in interested , if someone else programmed it :-)

zoltanp commented 9 years ago

Hi,

I see two possible implementations for integration with workspace/application switching:

Case (a) can be done with scripts and configuration settings external to xrandr-intert-colors, so I'm tempted to say that it is out of the scope of this project. Documenting the setup process would be nice, and if someone gets it done, I would happily add examples and documentation to this project.

For case (b), a lot of work is needed, and I'm not sure if there exists a solution that supports any desktop-environment, and not just specific ones. Please also note that I lack knowledge in the low-level workings of X11 and related technologies.

Also I wonder if a modern compositor, like compiz, or kwin has a plugin for inverting the colors of exactly one window. Apparently there are some solutions like that: http://askubuntu.com/questions/134668/how-to-trigger-a-color-inversion-effect-for-one-window

sharethewisdom commented 9 years ago

thanks for the link... I will check it out.

I admit that a few minutes after opening this issue I wrote a few styles using Gecko filters like html, img{filter: invert(100%)!important}, which is ideal for re-inverting the images. It's not a very useful idea to invert the whole monitor when one window or workspace has focus.