Back in the Unity days, there was a Compiz setting where you could force inactive windows to dim. I frequently work with two monitors and multiple windows open and it regularly happens that I start typing in the wrong window.
I already tried changing the colour of the titlebar, but it doesn't seem to help me much.
Is there a way to dim inactive windows while letting them remain legible?
I'm using Gnome as my Desktop Environment.
So, inspired by the comments, I searched for suitable gnome extensions and found two useful ones:
Shade Inactive Windows and Windows Blur Effects
I settled for the second one since it is more configurable.
However, I quickly realised that, while this is a great help when I'm quickly switching between windows, it is a nuisance at other times. Not wanting to open the extensions app to enable/disable the extension every time, I did some research and found this script which I modified as follows:
Then, I ran
gnome-shell-extension-cl -l
to get the list of extensions.Finally, I added a Keyboard shortcut to run
gnome-shell-extension-cl -t [email protected]
. I used Super + Alt + B, but any keyboard combination could do.