Can someone advise me of how to add borders (wide borders) to Windows in Ubuntu version 14.04. In the past I have used "gnome-tweak-tool". However it doesn't work with version 14.04.
All my windows (especially the many terminal screens I work with) appear to blend as one. It's very hard to tell where one window begin and another end.
Also the title bars are very hard to distinguish between which window is active and with window is inactive.
Thanks in advance for anyone who has a solution of how to customize these Windows (or how to make gnome-tweak-tool work with Ubuntu 14.04).
I tryed activating the Window Decorator feature of CCSM but using that disabled Unity and made the environment unusable.
All about tweaking the Windows in Ubuntu 14.04... setting border width, color, title, etc.
I appreciate the work around provided by the first answer. However, I was very specifically looking for a method of using the actually components as provided by the distribution if it exists.
At present you can copy your favorite theme from /usr/share/theme to ~/.theme. Name the theme folder something different from what it was named in the /usr/share/theme. This way when you select your chosen them you'll find it by the name you called the folder.
Example:
This is a per-user operation and doesn't require elevated access.
Now you can edit the gtk-3 folder of that new directory to make your borders any way you want them. You can also customize other components of the theme.
The borders can be resized by editing the UnityDecoration features of the unity.css file located in the apps folder:
To change the borders change the 0's to a different number of the parameter:
You'll find many other editible features in the gtk-3.x folder.
For other features of the borders such as color, text, etc... take a look at Unity/Theming at:
https://wiki.ubuntu.com/Unity/Theming
I appreciate the previous workaround. But I hope many can benefit from using the feature as distributed by the OS developers.
Oh yea, to use this newly edited theme you'll have to install the unity tweak tool.
Note: I already linked this question to a similar question about Ambiance configuration. This resolution can easily be applied to any modern Ubuntu theme... not just Ambiance (or the Radiance reference mentioned in this particular instance).
17.10
fragfutter's answer worked for me!
Make a file
~/.config/gtk-3.0/gtk.css
Add the lines:
decoration { border: 1px solid gray; background: gray; }
Reboot (or you could probably just log out and back in to gnome)
Earlier versions of Ubuntu
Here is a shell-script version of my favorite part of L. D. James's excellent answer:
17.04 uses gtk-3.20
16.04 and 15.10 use gtk-3.0
You'll have to log out, then log back in to see the results of this change. You can replace
Ambiance
(the default) withRadiance
or whatever theme you're currently using.How does it work?
sed
is a command line utility that replaces text.Ending a line with
\
tells the shell that the command continues on the next line (for human readability).-i
tells sed to edit the file in-place (don't make a new file).-e
tells sed that what follows is the sed script (instead of reading it from a file).s/.../.../
thes
means to substitute what's between the first two slashes with what's between the second two slashes. It only makes one substitution (because there is no/g
at the end).Here is How to do it!!!
First Pop that terminal up! and type this in.
this should get a older version of the theme use in 13.10
This should remove the current version of the theme.
This should allow it to download inside of your download folder if you wanted to keep it.
This should install the older version of the theme, that did use the borders.
This sould delect the .deb file if you wanted to.
If that link is dead click here to see more!
For 20.04:
Then add/replace this code for
decoration
. It will add a 5px border around the window and as a bonus, it makes it slightly transparent: