Highlight Window with focus even more
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?
unity focus usability
add a comment |
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?
unity focus usability
+1 While this old post had asked similar question and had been answered, I voted this question for being clear and brief; We shall expect a better answer here.
– clearkimura
Oct 2 '16 at 5:12
1
If you don't find an answer that gives exactly what you ask - highlight active window - would you consider an alternative ? For instance a shortcut that tells you active window or top panel indicator ?
– Sergiy Kolodyazhnyy
Oct 3 '16 at 6:13
1
@Serg I want to see the active window in micro seconds. A love shortcuts, but here I don't want to get active to see where the focus is at the moment.
– guettli
Oct 3 '16 at 15:59
1
I attempted to simplify the combined solution by Serg and user.dz, then added explanation for known issues and workarounds. More details in my delayed answer below.
– clearkimura
Oct 17 '16 at 17:31
add a comment |
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?
unity focus usability
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?
unity focus usability
unity focus usability
edited Feb 10 '17 at 14:45
guettli
asked Sep 23 '16 at 7:16
guettliguettli
66852065
66852065
+1 While this old post had asked similar question and had been answered, I voted this question for being clear and brief; We shall expect a better answer here.
– clearkimura
Oct 2 '16 at 5:12
1
If you don't find an answer that gives exactly what you ask - highlight active window - would you consider an alternative ? For instance a shortcut that tells you active window or top panel indicator ?
– Sergiy Kolodyazhnyy
Oct 3 '16 at 6:13
1
@Serg I want to see the active window in micro seconds. A love shortcuts, but here I don't want to get active to see where the focus is at the moment.
– guettli
Oct 3 '16 at 15:59
1
I attempted to simplify the combined solution by Serg and user.dz, then added explanation for known issues and workarounds. More details in my delayed answer below.
– clearkimura
Oct 17 '16 at 17:31
add a comment |
+1 While this old post had asked similar question and had been answered, I voted this question for being clear and brief; We shall expect a better answer here.
– clearkimura
Oct 2 '16 at 5:12
1
If you don't find an answer that gives exactly what you ask - highlight active window - would you consider an alternative ? For instance a shortcut that tells you active window or top panel indicator ?
– Sergiy Kolodyazhnyy
Oct 3 '16 at 6:13
1
@Serg I want to see the active window in micro seconds. A love shortcuts, but here I don't want to get active to see where the focus is at the moment.
– guettli
Oct 3 '16 at 15:59
1
I attempted to simplify the combined solution by Serg and user.dz, then added explanation for known issues and workarounds. More details in my delayed answer below.
– clearkimura
Oct 17 '16 at 17:31
+1 While this old post had asked similar question and had been answered, I voted this question for being clear and brief; We shall expect a better answer here.
– clearkimura
Oct 2 '16 at 5:12
+1 While this old post had asked similar question and had been answered, I voted this question for being clear and brief; We shall expect a better answer here.
– clearkimura
Oct 2 '16 at 5:12
1
1
If you don't find an answer that gives exactly what you ask - highlight active window - would you consider an alternative ? For instance a shortcut that tells you active window or top panel indicator ?
– Sergiy Kolodyazhnyy
Oct 3 '16 at 6:13
If you don't find an answer that gives exactly what you ask - highlight active window - would you consider an alternative ? For instance a shortcut that tells you active window or top panel indicator ?
– Sergiy Kolodyazhnyy
Oct 3 '16 at 6:13
1
1
@Serg I want to see the active window in micro seconds. A love shortcuts, but here I don't want to get active to see where the focus is at the moment.
– guettli
Oct 3 '16 at 15:59
@Serg I want to see the active window in micro seconds. A love shortcuts, but here I don't want to get active to see where the focus is at the moment.
– guettli
Oct 3 '16 at 15:59
1
1
I attempted to simplify the combined solution by Serg and user.dz, then added explanation for known issues and workarounds. More details in my delayed answer below.
– clearkimura
Oct 17 '16 at 17:31
I attempted to simplify the combined solution by Serg and user.dz, then added explanation for known issues and workarounds. More details in my delayed answer below.
– clearkimura
Oct 17 '16 at 17:31
add a comment |
4 Answers
4
active
oldest
votes
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.
Enable Universe repository: ADD helper belongs toUniverserepository, so make sure it is checked in Software & Updates settings:

Update and install required packages: You will need to have
Compiz Config Settings Managerandcompiz-plugins-extra. Run the following command to obtain them:
sudo bash -c 'apt-get update && apt-get install compiz-plugins-extra compizconfig-settings-manager'
Configuring ADD Helper:
- Find
Dim InactiveunderAccessibilityin CompizConfig Settings Manager. Check the checkbox.

- Click on the icon to open the menu. Under Bindings tab, set your desired shortcut ( default one doesn't seem to work properly) . Personally I use Ctrl+Alt+P but feel free to choose something else.

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:
- Brightness 45
- Saturation 45
- opacity 75

At this point you can hit the keyboard shortcut that you have set to test it or try to logout/login.
Working good in Ubuntu 16.04 & 14.04
– user.dz
Oct 5 '16 at 12:16
add a comment |
How about changing Unity decoration shadow for active window. This just example for Ambiance theme (same for Radiance).
Change directory for easy tests
cd /usr/share/themes/Ambiance/
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.
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
sudo apt-get install compizconfig-settings-manager
Run it
ccsm, go Ubuntu Unity Plugin → Decorations tab
Check Override theme settings then change Active window shadow as you like.

1
Good idea, thought of this myself too, but the big limitation is that this has to be done for each theme if user wishes to use something other than Ambiance. Maybe a script could do that ?
– Sergiy Kolodyazhnyy
Oct 3 '16 at 6:06
1
@Serg, yep . I just tested another way using compiz manager which have theme decoration override. It will override any theme. I will add in a moment.
– user.dz
Oct 3 '16 at 6:18
Awesome ! This works on my 16.04 as well.
– Sergiy Kolodyazhnyy
Oct 3 '16 at 6:40
Does this work if the window is in full screen mode? I have two monitors, both have an application in full screen mode....
– guettli
Oct 3 '16 at 15:57
1
Please see my solution, I've found something that fits your requirements of full-screen windows with dual monitors. In combination with user.dz's solution, this will be perfect
– Sergiy Kolodyazhnyy
Oct 5 '16 at 0:29
|
show 2 more comments
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 and universe repositories have been enabled (Default). If enabled later, run update by running sudo apt-get update.
Install required packages (without extra plugins)
sudo apt-get install compizconfig-settings-manager compiz-plugins-main
Run CompizConfig Settings Manager (CCSM)
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)
unity
Known issues and workarounds
The following are known issues and workarounds that I am aware of.
Matching colour is vivid and great, but all windows are highlighted with same border colour when using window spread feature (keyboard shortcut Super+W or similar).
Proof: BEFORE - Same border colour; AFTER - Replaced with dimmed shadow
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.
Active window works better with ADD Helper, but the dimming transition is slowing down the system on my machine.
Proof: Self-explanatory for affected users
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.
Changing theme from Ambiance (default) to Radiance (alternative), vice versa, will cause coloured window border to disappear at all.
Proof: BEFORE - Coloured border shown, AFTER - Coloured border disappeared
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.
add a comment |
The window decorations plugin in compizconfig-settings-manager (CCSM) allows you to edit the default settings for this .
sudo apt-get install compizconfig-settings-manager
To start the settings manager interface run
ccsm
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.
1
enabling window decorator will disable unity
– Anwar
Sep 26 '16 at 12:58
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f828557%2fhighlight-window-with-focus-even-more%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
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.
Enable Universe repository: ADD helper belongs toUniverserepository, so make sure it is checked in Software & Updates settings:

Update and install required packages: You will need to have
Compiz Config Settings Managerandcompiz-plugins-extra. Run the following command to obtain them:
sudo bash -c 'apt-get update && apt-get install compiz-plugins-extra compizconfig-settings-manager'
Configuring ADD Helper:
- Find
Dim InactiveunderAccessibilityin CompizConfig Settings Manager. Check the checkbox.

- Click on the icon to open the menu. Under Bindings tab, set your desired shortcut ( default one doesn't seem to work properly) . Personally I use Ctrl+Alt+P but feel free to choose something else.

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:
- Brightness 45
- Saturation 45
- opacity 75

At this point you can hit the keyboard shortcut that you have set to test it or try to logout/login.
Working good in Ubuntu 16.04 & 14.04
– user.dz
Oct 5 '16 at 12:16
add a comment |
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.
Enable Universe repository: ADD helper belongs toUniverserepository, so make sure it is checked in Software & Updates settings:

Update and install required packages: You will need to have
Compiz Config Settings Managerandcompiz-plugins-extra. Run the following command to obtain them:
sudo bash -c 'apt-get update && apt-get install compiz-plugins-extra compizconfig-settings-manager'
Configuring ADD Helper:
- Find
Dim InactiveunderAccessibilityin CompizConfig Settings Manager. Check the checkbox.

- Click on the icon to open the menu. Under Bindings tab, set your desired shortcut ( default one doesn't seem to work properly) . Personally I use Ctrl+Alt+P but feel free to choose something else.

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:
- Brightness 45
- Saturation 45
- opacity 75

At this point you can hit the keyboard shortcut that you have set to test it or try to logout/login.
Working good in Ubuntu 16.04 & 14.04
– user.dz
Oct 5 '16 at 12:16
add a comment |
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.
Enable Universe repository: ADD helper belongs toUniverserepository, so make sure it is checked in Software & Updates settings:

Update and install required packages: You will need to have
Compiz Config Settings Managerandcompiz-plugins-extra. Run the following command to obtain them:
sudo bash -c 'apt-get update && apt-get install compiz-plugins-extra compizconfig-settings-manager'
Configuring ADD Helper:
- Find
Dim InactiveunderAccessibilityin CompizConfig Settings Manager. Check the checkbox.

- Click on the icon to open the menu. Under Bindings tab, set your desired shortcut ( default one doesn't seem to work properly) . Personally I use Ctrl+Alt+P but feel free to choose something else.

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:
- Brightness 45
- Saturation 45
- opacity 75

At this point you can hit the keyboard shortcut that you have set to test it or try to logout/login.
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.
Enable Universe repository: ADD helper belongs toUniverserepository, so make sure it is checked in Software & Updates settings:

Update and install required packages: You will need to have
Compiz Config Settings Managerandcompiz-plugins-extra. Run the following command to obtain them:
sudo bash -c 'apt-get update && apt-get install compiz-plugins-extra compizconfig-settings-manager'
Configuring ADD Helper:
- Find
Dim InactiveunderAccessibilityin CompizConfig Settings Manager. Check the checkbox.

- Click on the icon to open the menu. Under Bindings tab, set your desired shortcut ( default one doesn't seem to work properly) . Personally I use Ctrl+Alt+P but feel free to choose something else.

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:
- Brightness 45
- Saturation 45
- opacity 75

At this point you can hit the keyboard shortcut that you have set to test it or try to logout/login.
answered Oct 5 '16 at 0:28
Sergiy KolodyazhnyySergiy Kolodyazhnyy
71.5k9147313
71.5k9147313
Working good in Ubuntu 16.04 & 14.04
– user.dz
Oct 5 '16 at 12:16
add a comment |
Working good in Ubuntu 16.04 & 14.04
– user.dz
Oct 5 '16 at 12:16
Working good in Ubuntu 16.04 & 14.04
– user.dz
Oct 5 '16 at 12:16
Working good in Ubuntu 16.04 & 14.04
– user.dz
Oct 5 '16 at 12:16
add a comment |
How about changing Unity decoration shadow for active window. This just example for Ambiance theme (same for Radiance).
Change directory for easy tests
cd /usr/share/themes/Ambiance/
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.
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
sudo apt-get install compizconfig-settings-manager
Run it
ccsm, go Ubuntu Unity Plugin → Decorations tab
Check Override theme settings then change Active window shadow as you like.

1
Good idea, thought of this myself too, but the big limitation is that this has to be done for each theme if user wishes to use something other than Ambiance. Maybe a script could do that ?
– Sergiy Kolodyazhnyy
Oct 3 '16 at 6:06
1
@Serg, yep . I just tested another way using compiz manager which have theme decoration override. It will override any theme. I will add in a moment.
– user.dz
Oct 3 '16 at 6:18
Awesome ! This works on my 16.04 as well.
– Sergiy Kolodyazhnyy
Oct 3 '16 at 6:40
Does this work if the window is in full screen mode? I have two monitors, both have an application in full screen mode....
– guettli
Oct 3 '16 at 15:57
1
Please see my solution, I've found something that fits your requirements of full-screen windows with dual monitors. In combination with user.dz's solution, this will be perfect
– Sergiy Kolodyazhnyy
Oct 5 '16 at 0:29
|
show 2 more comments
How about changing Unity decoration shadow for active window. This just example for Ambiance theme (same for Radiance).
Change directory for easy tests
cd /usr/share/themes/Ambiance/
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.
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
sudo apt-get install compizconfig-settings-manager
Run it
ccsm, go Ubuntu Unity Plugin → Decorations tab
Check Override theme settings then change Active window shadow as you like.

1
Good idea, thought of this myself too, but the big limitation is that this has to be done for each theme if user wishes to use something other than Ambiance. Maybe a script could do that ?
– Sergiy Kolodyazhnyy
Oct 3 '16 at 6:06
1
@Serg, yep . I just tested another way using compiz manager which have theme decoration override. It will override any theme. I will add in a moment.
– user.dz
Oct 3 '16 at 6:18
Awesome ! This works on my 16.04 as well.
– Sergiy Kolodyazhnyy
Oct 3 '16 at 6:40
Does this work if the window is in full screen mode? I have two monitors, both have an application in full screen mode....
– guettli
Oct 3 '16 at 15:57
1
Please see my solution, I've found something that fits your requirements of full-screen windows with dual monitors. In combination with user.dz's solution, this will be perfect
– Sergiy Kolodyazhnyy
Oct 5 '16 at 0:29
|
show 2 more comments
How about changing Unity decoration shadow for active window. This just example for Ambiance theme (same for Radiance).
Change directory for easy tests
cd /usr/share/themes/Ambiance/
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.
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
sudo apt-get install compizconfig-settings-manager
Run it
ccsm, go Ubuntu Unity Plugin → Decorations tab
Check Override theme settings then change Active window shadow as you like.

How about changing Unity decoration shadow for active window. This just example for Ambiance theme (same for Radiance).
Change directory for easy tests
cd /usr/share/themes/Ambiance/
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.
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
sudo apt-get install compizconfig-settings-manager
Run it
ccsm, go Ubuntu Unity Plugin → Decorations tab
Check Override theme settings then change Active window shadow as you like.

edited Oct 3 '16 at 7:47
answered Oct 3 '16 at 5:20
user.dzuser.dz
34.7k1192177
34.7k1192177
1
Good idea, thought of this myself too, but the big limitation is that this has to be done for each theme if user wishes to use something other than Ambiance. Maybe a script could do that ?
– Sergiy Kolodyazhnyy
Oct 3 '16 at 6:06
1
@Serg, yep . I just tested another way using compiz manager which have theme decoration override. It will override any theme. I will add in a moment.
– user.dz
Oct 3 '16 at 6:18
Awesome ! This works on my 16.04 as well.
– Sergiy Kolodyazhnyy
Oct 3 '16 at 6:40
Does this work if the window is in full screen mode? I have two monitors, both have an application in full screen mode....
– guettli
Oct 3 '16 at 15:57
1
Please see my solution, I've found something that fits your requirements of full-screen windows with dual monitors. In combination with user.dz's solution, this will be perfect
– Sergiy Kolodyazhnyy
Oct 5 '16 at 0:29
|
show 2 more comments
1
Good idea, thought of this myself too, but the big limitation is that this has to be done for each theme if user wishes to use something other than Ambiance. Maybe a script could do that ?
– Sergiy Kolodyazhnyy
Oct 3 '16 at 6:06
1
@Serg, yep . I just tested another way using compiz manager which have theme decoration override. It will override any theme. I will add in a moment.
– user.dz
Oct 3 '16 at 6:18
Awesome ! This works on my 16.04 as well.
– Sergiy Kolodyazhnyy
Oct 3 '16 at 6:40
Does this work if the window is in full screen mode? I have two monitors, both have an application in full screen mode....
– guettli
Oct 3 '16 at 15:57
1
Please see my solution, I've found something that fits your requirements of full-screen windows with dual monitors. In combination with user.dz's solution, this will be perfect
– Sergiy Kolodyazhnyy
Oct 5 '16 at 0:29
1
1
Good idea, thought of this myself too, but the big limitation is that this has to be done for each theme if user wishes to use something other than Ambiance. Maybe a script could do that ?
– Sergiy Kolodyazhnyy
Oct 3 '16 at 6:06
Good idea, thought of this myself too, but the big limitation is that this has to be done for each theme if user wishes to use something other than Ambiance. Maybe a script could do that ?
– Sergiy Kolodyazhnyy
Oct 3 '16 at 6:06
1
1
@Serg, yep . I just tested another way using compiz manager which have theme decoration override. It will override any theme. I will add in a moment.
– user.dz
Oct 3 '16 at 6:18
@Serg, yep . I just tested another way using compiz manager which have theme decoration override. It will override any theme. I will add in a moment.
– user.dz
Oct 3 '16 at 6:18
Awesome ! This works on my 16.04 as well.
– Sergiy Kolodyazhnyy
Oct 3 '16 at 6:40
Awesome ! This works on my 16.04 as well.
– Sergiy Kolodyazhnyy
Oct 3 '16 at 6:40
Does this work if the window is in full screen mode? I have two monitors, both have an application in full screen mode....
– guettli
Oct 3 '16 at 15:57
Does this work if the window is in full screen mode? I have two monitors, both have an application in full screen mode....
– guettli
Oct 3 '16 at 15:57
1
1
Please see my solution, I've found something that fits your requirements of full-screen windows with dual monitors. In combination with user.dz's solution, this will be perfect
– Sergiy Kolodyazhnyy
Oct 5 '16 at 0:29
Please see my solution, I've found something that fits your requirements of full-screen windows with dual monitors. In combination with user.dz's solution, this will be perfect
– Sergiy Kolodyazhnyy
Oct 5 '16 at 0:29
|
show 2 more comments
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 and universe repositories have been enabled (Default). If enabled later, run update by running sudo apt-get update.
Install required packages (without extra plugins)
sudo apt-get install compizconfig-settings-manager compiz-plugins-main
Run CompizConfig Settings Manager (CCSM)
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)
unity
Known issues and workarounds
The following are known issues and workarounds that I am aware of.
Matching colour is vivid and great, but all windows are highlighted with same border colour when using window spread feature (keyboard shortcut Super+W or similar).
Proof: BEFORE - Same border colour; AFTER - Replaced with dimmed shadow
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.
Active window works better with ADD Helper, but the dimming transition is slowing down the system on my machine.
Proof: Self-explanatory for affected users
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.
Changing theme from Ambiance (default) to Radiance (alternative), vice versa, will cause coloured window border to disappear at all.
Proof: BEFORE - Coloured border shown, AFTER - Coloured border disappeared
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.
add a comment |
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 and universe repositories have been enabled (Default). If enabled later, run update by running sudo apt-get update.
Install required packages (without extra plugins)
sudo apt-get install compizconfig-settings-manager compiz-plugins-main
Run CompizConfig Settings Manager (CCSM)
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)
unity
Known issues and workarounds
The following are known issues and workarounds that I am aware of.
Matching colour is vivid and great, but all windows are highlighted with same border colour when using window spread feature (keyboard shortcut Super+W or similar).
Proof: BEFORE - Same border colour; AFTER - Replaced with dimmed shadow
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.
Active window works better with ADD Helper, but the dimming transition is slowing down the system on my machine.
Proof: Self-explanatory for affected users
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.
Changing theme from Ambiance (default) to Radiance (alternative), vice versa, will cause coloured window border to disappear at all.
Proof: BEFORE - Coloured border shown, AFTER - Coloured border disappeared
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.
add a comment |
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 and universe repositories have been enabled (Default). If enabled later, run update by running sudo apt-get update.
Install required packages (without extra plugins)
sudo apt-get install compizconfig-settings-manager compiz-plugins-main
Run CompizConfig Settings Manager (CCSM)
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)
unity
Known issues and workarounds
The following are known issues and workarounds that I am aware of.
Matching colour is vivid and great, but all windows are highlighted with same border colour when using window spread feature (keyboard shortcut Super+W or similar).
Proof: BEFORE - Same border colour; AFTER - Replaced with dimmed shadow
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.
Active window works better with ADD Helper, but the dimming transition is slowing down the system on my machine.
Proof: Self-explanatory for affected users
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.
Changing theme from Ambiance (default) to Radiance (alternative), vice versa, will cause coloured window border to disappear at all.
Proof: BEFORE - Coloured border shown, AFTER - Coloured border disappeared
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.
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 and universe repositories have been enabled (Default). If enabled later, run update by running sudo apt-get update.
Install required packages (without extra plugins)
sudo apt-get install compizconfig-settings-manager compiz-plugins-main
Run CompizConfig Settings Manager (CCSM)
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)
unity
Known issues and workarounds
The following are known issues and workarounds that I am aware of.
Matching colour is vivid and great, but all windows are highlighted with same border colour when using window spread feature (keyboard shortcut Super+W or similar).
Proof: BEFORE - Same border colour; AFTER - Replaced with dimmed shadow
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.
Active window works better with ADD Helper, but the dimming transition is slowing down the system on my machine.
Proof: Self-explanatory for affected users
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.
Changing theme from Ambiance (default) to Radiance (alternative), vice versa, will cause coloured window border to disappear at all.
Proof: BEFORE - Coloured border shown, AFTER - Coloured border disappeared
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.
edited Jan 8 at 17:15
answered Oct 17 '16 at 17:27
clearkimuraclearkimura
3,88011954
3,88011954
add a comment |
add a comment |
The window decorations plugin in compizconfig-settings-manager (CCSM) allows you to edit the default settings for this .
sudo apt-get install compizconfig-settings-manager
To start the settings manager interface run
ccsm
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.
1
enabling window decorator will disable unity
– Anwar
Sep 26 '16 at 12:58
add a comment |
The window decorations plugin in compizconfig-settings-manager (CCSM) allows you to edit the default settings for this .
sudo apt-get install compizconfig-settings-manager
To start the settings manager interface run
ccsm
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.
1
enabling window decorator will disable unity
– Anwar
Sep 26 '16 at 12:58
add a comment |
The window decorations plugin in compizconfig-settings-manager (CCSM) allows you to edit the default settings for this .
sudo apt-get install compizconfig-settings-manager
To start the settings manager interface run
ccsm
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.
The window decorations plugin in compizconfig-settings-manager (CCSM) allows you to edit the default settings for this .
sudo apt-get install compizconfig-settings-manager
To start the settings manager interface run
ccsm
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.
edited Oct 3 '16 at 13:59
answered Sep 26 '16 at 12:53
AmiasAmias
4,2401329
4,2401329
1
enabling window decorator will disable unity
– Anwar
Sep 26 '16 at 12:58
add a comment |
1
enabling window decorator will disable unity
– Anwar
Sep 26 '16 at 12:58
1
1
enabling window decorator will disable unity
– Anwar
Sep 26 '16 at 12:58
enabling window decorator will disable unity
– Anwar
Sep 26 '16 at 12:58
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f828557%2fhighlight-window-with-focus-even-more%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
+1 While this old post had asked similar question and had been answered, I voted this question for being clear and brief; We shall expect a better answer here.
– clearkimura
Oct 2 '16 at 5:12
1
If you don't find an answer that gives exactly what you ask - highlight active window - would you consider an alternative ? For instance a shortcut that tells you active window or top panel indicator ?
– Sergiy Kolodyazhnyy
Oct 3 '16 at 6:13
1
@Serg I want to see the active window in micro seconds. A love shortcuts, but here I don't want to get active to see where the focus is at the moment.
– guettli
Oct 3 '16 at 15:59
1
I attempted to simplify the combined solution by Serg and user.dz, then added explanation for known issues and workarounds. More details in my delayed answer below.
– clearkimura
Oct 17 '16 at 17:31