You are not logged in.
I am fairly open to different terminals / windows tiling managers. However I would like a combination that allows me to do the following:
When a terminal is highlighted, I would like the background color of the terminal to change.
To clarify, i3, can change the border of the highlighted window to change, but I want the actual field on which the terminal renders text to change.
Thank you for any suggestions.
Last edited by ethanabrooks (2017-06-17 17:57:10)
Offline
Which terminal? This is entirely up to the terminal, not the window manager*. Urxvt has options for this.
*edit: depending on ones definition of "window manager", some window managers could do this. More specifically compositors, not window managers, can fade unfocused windows. Some WMs are bundled with a compositor, i3 is not but you can run i3 and a compositor if you want. Just the same, what you want really should be handled client-side (in the terminal settings).
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
Well, I currently use termite, so I would happy to stick with that one if possible. I also use i3, but there doesn't seem to be a way to do what I'm describing in i3. I downloaded Urxvt and played a little with the config, but I didn't see anything in the documentation or the example config file that I downloaded that related to whether or not the terminal was in focus by the tiling manager. Could you provide a little more detail?
Offline
Tiling is irrelevant. Focus is focus. In urxvt you're looking for the 'fade' options.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
If you want to stick with termite, as Trilby already mentioned, a compositor should be able to help you out. Give compton a try.
Offline
So compton gets me pretty close to what I am looking for, specifically using the `-i (inactive-opacity)` option. This option makes inactive windows partially transparent, as determined by command line argument. Is it possible, rather than giving inactive windows partial transparency, to give those windows a different, or tinted background color? Thanks for all your help.
Offline
You probably want the inactive-dim option, but I've never used compton.
But other than that, there is very little a WM or compositor can do. The client controls what is painted in the window. The winow manager has no control at all. The compositor can modify the content a bit by compositing it with some other graphic mask, but it is limited to blending two graphics buffers. Neither the window manager nor compositor knows anything about the content of the window. The client (e.g. the terminal) does. So a terminal can change it's background color and only the background color (not affecting the text) when inactive.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
inactive-dim is perfect. Thanks for your help.
Offline
Addendum
Is it possible [...] to give those windows a different, or tinted background color?
for urxvt a perl script should be possible to alter colors or at least color reversion depending on on_focus_in/on_focus_out hoooks and the rendition bits, see http://pod.tst.eu/http://cvs.schmorp.de … c/urxvt.pm (double URL for nice markup ;-)
Offline
Got it. Thanks!
Offline