Ubuntu – Highlight Window with focus even more

focusunityusability

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?

Best Answer

How about changing Unity decoration shadow for active window. This just example for Ambiance theme (same for Radiance).

  1. Change directory for easy tests

    cd /usr/share/themes/Ambiance/
    
  2. Change decoration (example: blue color)

    sudo nano gtk-3.0/apps/unity.css
    

    Original black active shadow

    UnityDecoration {
    ...
        -UnityDecoration-active-shadow-color: rgba (0, 0, 0, 0.75);
        -UnityDecoration-active-shadow-radius: 30px;
        -UnityDecoration-inactive-shadow-color: rgba (0, 0, 0, 0.3);
        -UnityDecoration-inactive-shadow-radius: 25px;
    ...
    }
    

    Now blue active shadow

    UnityDecoration {
    ...
        -UnityDecoration-active-shadow-color: rgba (0, 0, 255, 0.75);
        -UnityDecoration-active-shadow-radius: 30px;
        -UnityDecoration-inactive-shadow-color: rgba (0, 0, 0, 0.3);
        -UnityDecoration-inactive-shadow-radius: 25px;
    ...
    }
    

    You may change size(radius) and transparency too.

  3. Logout login.

    Unity active window with highlight shadow

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.

  1. Install Compiz manager

    sudo apt-get install compizconfig-settings-manager
    
  2. Run it ccsm, go Ubuntu Unity Plugin → Decorations tab

  3. Check Override theme settings then change Active window shadow as you like.

    Compiz - override Unity decoration shadow

Related Question