Ubuntu – How to set borders around windows in 14.04

borderstitlebartweakunitywindow

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.

Best Answer

  • 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:

    $ cp -R /usr/share/themes/Radiance/ ~/.themes/MyRadiance
    

    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:

    ~/.themes/MyRadiance/gtk-3.0/apps/unity.css
    

    To change the borders change the 0's to a different number of the parameter:

    -UnityDecoration-extents: 28px 0 0 0;
    

    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.

    $ sudo apt-get install 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).