a1b4 .Xresources OR .Xdefaults ? - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Desktop Usage > X.Org

X.Org X.Org on FreeBSD installation & configuration.

Reply
 
Thread Tools Display Modes
  #1  
Old August 21st, 2010, 22:29
Erratus's Avatar
Erratus Erratus is offline
Member
 
Join Date: Nov 2008
Posts: 237
Thanks: 27
Thanked 6 Times in 6 Posts
Default .Xresources OR .Xdefaults ?

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.

Last edited by DutchDaemon; August 22nd, 2010 at 01:09.
Reply With Quote
  #2  
Old August 21st, 2010, 22:38
graudeejs's Avatar
graudeejs graudeejs is offline
Style(9) Addict
 
Join Date: Nov 2008
Location: Riga, Latvia
Posts: 4,522
Thanks: 422
Thanked 607 Times in 475 Posts
Default

I use ~/.Xdefaults and it works
To apply changes to xterm simply open new terminal
Reply With Quote
  #3  
Old August 22nd, 2010, 15:04
vermaden's Avatar
vermaden vermaden is offline
Giant Locked
 
Join Date: Nov 2008
Location: pl_PL.lodz
Posts: 2,191
Thanks: 59
Thanked 632 Times in 349 Posts
Default

+1 for ~/.Xdefaults
__________________
Religions, worst damnation of mankind.
"FreeBSD has always been the operating system that GNU/Linux should have been." Frank Pohlmann, IBM
http://vermaden.blogspot.com
Reply With Quote
  #4  
Old August 23rd, 2010, 23:48
itcotbtoemik itcotbtoemik is offline
Junior Member
 
Join Date: Jul 2010
Posts: 22
Thanks: 0
Thanked 3 Times in 3 Posts
Default

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.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 20:05.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0