Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Ubuntu This forum is for the discussion of Ubuntu Linux.


  Search this Thread
Old 02-18-2008, 03:20 PM   #1
LQ Newbie
Registered: Jul 2006
Posts: 6

Rep: Reputation: 0
Window Border Thickness

Anybody out there know how to change the thickness of window borders in Ubuntu? My old eyes can't always grab the border to resize things, and in Winders (gasp!) I could change it in Display controls. How do you do it here? I can't find that anywhere.

Old 02-19-2008, 09:07 AM   #2
Senior Member
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060
If you create (or edit) the content of the file .Xresources in your home directory, you can set attributes. For example, from man X:
           bitmap*Dashed:  off
           XTerm*cursorColor:  gold
           XTerm*multiScroll:  on
           XTerm*jumpScroll:  on
           XTerm*reverseWrap:  on
           XTerm*curses:  on
           XTerm*Font:  6x10
           XTerm*scrollBar: on
           XTerm*scrollbar*thickness: 5
           XTerm*multiClickTime: 500
           XTerm*charClass:  33:48,37:48,45-47:48,64:48
           XTerm*cutNewline: off
           XTerm*cutToBeginningOfLine: off
           XTerm*titeInhibit:  on
           XTerm*ttyModes:  intr ^c erase ^? kill ^u
           XLoad*Background: gold
           XLoad*Foreground: red
           XLoad*highlight: black
           XLoad*borderWidth: 0
           emacs*Geometry:  80x65-0-0
           emacs*Background:  rgb:5b/76/86
           emacs*Foreground:  white
           emacs*Cursor:  white
           emacs*BorderColor:  white
           emacs*Font:  6x10
           xmag*geometry: -0-0
           xmag*borderColor:  white
(I think you're interested in borderWidth.)

When you set a resource attribute, you need to add or merge whatever you change with
xrdb -merge ${HOME}/.Xresources
to update the server. Be sure to look at the Resource Manager Functions section of the X manual page too. This may happen automagically when you log in; look at the file .xinitrc in your home directory which should look something like this:
# $XConsortium: xinitrc.cpp,v 1.4 91/08/22 11:41:34 rws Exp $


# merge in defaults and keymaps

if [ -f $sysresources ]; then
    xrdb -merge $sysresources

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap

if [ -f $userresources ]; then
    xrdb -merge $userresources

if [ -f $usermodmap ]; then
    xmodmap $usermodmap

# Start the window manager:
Note that it looks for content in $HOME/.Xresource and runs the xrdb utility whenever you log in.

It's a little tricky and you probably want to read as much as you can of the manual page and try the examples to see what happens but that should get you started in the right direction; bear in mind that you're setting attributes for individual programs (as above) or for every program (see the manual page).

Hope this helps some.

Last edited by tronayne; 02-19-2008 at 09:15 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Transparent window-border? Score Linux - General 7 12-16-2006 07:14 PM
Window border RMB event LzW-x General 0 06-11-2006 01:51 AM
[fluxbox] removing the border around the window. apacz Linux - Software 5 08-30-2004 12:22 PM
GNOME window border question... Titan_X Linux - Software 3 04-27-2004 05:48 PM
Desactivate Window Border.. Borelian Linux - Software 0 10-12-2003 09:24 AM > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 09:11 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration