I have two monitors and sometimes I start to type into the wrong window.
The window with the focus is highlighted in unity (Ubuntu 16.04) with a gray shadow.
Is there a way to highlight the window with the focus even more?
Maybe with a colored border ...
Thank you very much for all answers, but ...
... they are all too complicated. Why is simple convenience stuff like this that complicated?
How about changing Unity decoration shadow for active window. This just example for Ambiance theme (same for Radiance).
Change directory for easy tests
Change decoration (example: blue color)
Original black active shadow
Now blue active shadow
You may change size(radius) and transparency too.
Logout login.
As Serg commented below, the above method could be fine for limited number of themes as it needs manual change for each theme. Here is a better way using Compiz.
Install Compiz manager
Run it
ccsm
, go Ubuntu Unity Plugin → Decorations tabCheck Override theme settings then change Active window shadow as you like.
Introduction:
There exists accessibility extension for
compiz
called ADD Helper. The basic premise of that extension is to do the opposite of what you ask - dim inactive windows, while keeping active window normal. Below is the screenshot of ADD Helper in action:Notice how the window on the right is dimmed, while the one on the left remains the same level of brightness and transparency. NOTE: I have tested this with dual screen setup and having full-screen windows on both monitors. Works perfectly in each case. Combined with user.dz's solution this is perfect combination for focusing active window.
Obtaining ADD Helper:
In order to enable this plugin you will need 2 things.
Universe
repository, so make sure it is checked in Software & Updates settings:Update and install required packages: You will need to have
Compiz Config Settings Manager
andcompiz-plugins-extra
. Run the following command to obtain them:Configuring ADD Helper:
Dim Inactive
underAccessibility
in CompizConfig Settings Manager. Check the checkbox.Under Misc. Options tab, configure the amount of brightness and opacity you wish your window to have. Check "enable on startup" checkbox so that it starts every time you login. The setup that you see in my first screenshot is as follows:
At this point you can hit the keyboard shortcut that you have set to test it or try to logout/login.
This delayed answer is intended to simplify the combined solution of @Serg and @user.dz, as well as to explain known issues and the workarounds.
Combined solution simplified
Ensure that
main
anduniverse
repositories have been enabled (Default). If enabled later, run update by runningsudo apt-get update
.Install required packages (without extra plugins)
Run CompizConfig Settings Manager (CCSM)
Enable colored window border
In CCSM, go to Desktop > Ubuntu Unity Plugin > Decorations
Select checkbox for option "Override Theme Settings". For better visibility and matching colour, adjust these options: "Active window shadow radius" (suggested value:
20
) and "Active window shadow color" (suggested opacity:255
; hexvalue:#FF3300
).Enable ADD Helper
In CCSM, go to Accessibility > Dim Inactive > Misc. Options
First, select checkbox for option "Enable ADD Helper on start", then select checkbox for "Enable Dim Inactive". This way, plugin will be activated immediately without using keyboard shortcut.
Reload Unity (if above steps had no effect when enabled)
Known issues and workarounds
The following are known issues and workarounds that I am aware of.
This is noticeable when using "coloured window border" only (step 3). Use ADD Helper to replace the highlighted borders for all windows with dimmed shadow (step 4). Changing the border colour may not help much, so user should use both (step 3 and 4) for best experience.
This is easy to alleviate. In CCSM, go to Effects and deselect plugins for Animation and Fading Windows. Disabling these effects will make the system be more responsive.
This is likely a limitation for overriding the theme settings. The method is not persistent between changes. Therefore, after changing the theme, reload Unity (step 5) to show the coloured window border. Slower machine may need to reload Unity more than one time to take effect properly.
I had purposedly included only links to screenshots for simplicity.
Even without these screenshots, users who followed the solution will understand the issues once they start using. For users who are not having these issues, they likely have good hardware support that allows to run Unity environment without hiccups.
Tested working with Unity 7.4.0 and Compiz 0.9.12.2 in Ubuntu 16.04.
The window decorations plugin in compizconfig-settings-manager (CCSM) allows you to edit the default settings for this .
To start the settings manager interface run
Scroll to the Effects section and choose Window Decoration
Enable the plugin by clicking its tickbox then adjust the Active and Inactive Shadow settings to taste. Changes should appear automatically.
Be careful about playing with anything else in CCSM until you are sure these settings are stable, its very easy to completely break your compiz installation as not all settings are compatible with each other.