1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

.Xresources OR .Xdefaults ?

Discussion in 'X.Org' started by Erratus, Aug 21, 2010.

  1. Erratus

    Erratus New Member

    Messages:
    320
    Likes Received:
    0
    I need to set some defaults for xterm (yes, xterm and I do not want to change).

    In man X(7) can be read
    Code:
         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
    
           If  these  resources  were  stored in a file called .Xresources in your
           home directory, they could be added to any existing  resources  in  the
           server with the following command:
    
               % xrdb -merge $HOME/.Xresources
    
    But man XRDB(1) refers to

    Code:
    FILES
           Generalizes ~/.Xdefaults files.
    I tried both in my home directory. Surprisingly neither worked.

    So please help me where to put xterm defaults as shown above and how to enable them.
     
  2. graudeejs

    graudeejs Member

    Messages:
    4,594
    Likes Received:
    0
    I use ~/.Xdefaults and it works
    To apply changes to xterm simply open new terminal
     
  3. vermaden

    vermaden Member

    Messages:
    2,352
    Likes Received:
    0
    +1 for ~/.Xdefaults
     
  4. itcotbtoemik

    itcotbtoemik New Member

    Messages:
    22
    Likes Received:
    0
    Actually, it seems to depend on the window manager (or "desktop environment").
    On the (Debian) system that I'm logged into currently, "man X" talks only about
    the variant ~/.Xdefaults-hostname

    I usually avoid ~/.Xdefaults, using XAPPLRESDIR to add my own app-defaults directory.