You are not logged in.

#1 2014-11-03 02:30:45

xautjzd
Member
Registered: 2014-11-03
Posts: 4
Website

Xterm can't autoload ~/.Xresources

I installed ArchLinux and use tiling window manager—awesome. I'm using xterm as my terminal emulator, but the default xterm appearance looks ugly,
so I add some configuation to the file ~/.Xresources, and exec "xrdb ~/.Xresources", open xterm, its OK. But when reboot archlinux, execute "startx"  to enter the awesome, and open xterm, it become default appearance, I must execute "xrdb ~/.Xresources" again to make effect.


How can I do to make the configuration available all the time? I have added "xrdb ~/.Xresources" to ~/.xinitrc, but have no effect.Please help me.

Offline

#2 2014-11-03 02:32:38

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: Xterm can't autoload ~/.Xresources

Adding it to your xinitrc should work.  I suspect you added it after the 'exec' line for the window manager though - that would not work.  Put the xrdb line before the WM line.  If that doesn't solve it, post your full xinitrc so we can see what is happening.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2014-11-03 02:38:27

xautjzd
Member
Registered: 2014-11-03
Posts: 4
Website

Re: Xterm can't autoload ~/.Xresources

Thanks very much, it's OK after change the order. But I can't understand why. Can you give me some tips? Why must "xrdb ~/Xresources" add before "exec awesome"?

Offline

#4 2014-11-03 02:39:07

xautjzd
Member
Registered: 2014-11-03
Posts: 4
Website

Re: Xterm can't autoload ~/.Xresources

Trilby wrote:

Adding it to your xinitrc should work.  I suspect you added it after the 'exec' line for the window manager though - that would not work.  Put the xrdb line before the WM line.  If that doesn't solve it, post your full xinitrc so we can see what is happening.

Thanks very much, it's OK after change the order. But I can't understand why. Can you give me some tips? Why must "xrdb ~/Xresources" add before "exec awesome"?

Offline

#5 2014-11-03 02:50:14

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: Xterm can't autoload ~/.Xresources

Two reasons: 1) if you use "exec awesomewm" then nothing after that line could ever execute.  To learn why, read `man exec'.  2) Even without the "exec" there (e.g. if your xinitrc only had "awesomewm") then lines after that could execute, but only after you shut down the WM which would be too late to be of any use.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2014-11-03 14:00:45

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Xterm can't autoload ~/.Xresources

xautjzd wrote:

Thanks very much, it's OK after change the order.

We have a nice wiki, please use it: https://wiki.archlinux.org/index.php/Xinitrc

Offline

Board footer

Powered by FluxBB