You are not logged in.
Hello all,
I'm trying out dwm and love the simplicity. I've gotten it up and running but am noticing something odd.
- If I have an .xinitrc with "exec dwm" in it and run startx, it starts up but any terminal (ctrl+alt+enter) comes up with a white background and black font.
- If I rename .xinitrc to something like .xinitrc2 and run startx, the terminal has a black background with a white font.
I want the black background and white font with .xinitrc so I can show the date. I've played around with config.h but don't see anything for the terminal colors (only the 1 2 3 ... bar above).
I'm pretty new to dwm so I might be missing something simple. Does anyone have any ideas?
Last edited by Annorax (2013-05-07 20:35:58)
Toshiba Satellite A105-S4064
Arch Linux with KDE
Offline
You can configure your terminal with .xinitrc or otherwise https://wiki.archlinux.org/index.php/X_resources
Default dwm config uses xterm as the terminal, but you can change it, so ctrl+alt+enter opens up e.g. urxvt.
Last edited by karol (2013-05-07 00:22:52)
Offline
See:
static const char *termcmd[] = { "uxterm", NULL };Offline
You also need
xrdb ~/.Xresources &somewhere in your .xinitrc before you call exec dwm, so your xresources file applies each time you start dwm.
Offline
You also need
xrdb ~/.Xresources &somewhere in your .xinitrc before you call exec dwm, so your xresources file applies each time you start dwm.
This info is in the wiki and it warns against backgrounding the operation.
Offline
SolarBoyMatt wrote:You also need
xrdb ~/.Xresources &somewhere in your .xinitrc before you call exec dwm, so your xresources file applies each time you start dwm.
This info is in the wiki and it warns against backgrounding the operation.
Using xrdb to source your ~/.Xresources is pretty instant, so in addition to possibly causing problems, there will probably be no noticeable difference in time either.
Offline
Thanks all for the helpful input. Using .Xresources and adding the xrdb command to my .xinitrc file did the trick.
Toshiba Satellite A105-S4064
Arch Linux with KDE
Offline
Please mark the thread as solved https://bbs.archlinux.org/viewtopic.php?id=130309
Offline