You are not logged in.

#1 2013-05-07 00:11:43

Annorax
Member
From: MA, USA
Registered: 2012-01-16
Posts: 51

[SOLVED] dwm: Changing terminal background?

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

#2 2013-05-07 00:22:03

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

Re: [SOLVED] dwm: Changing terminal background?

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

#3 2013-05-07 00:52:17

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] dwm: Changing terminal background?

See:

static const char *termcmd[]  = { "uxterm", NULL };

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2013-05-07 01:21:49

SolarBoyMatt
Member
Registered: 2012-01-07
Posts: 263

Re: [SOLVED] dwm: Changing terminal background?

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

#5 2013-05-07 01:42:24

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

Re: [SOLVED] dwm: Changing terminal background?

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.

Offline

#6 2013-05-07 02:16:44

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] dwm: Changing terminal background?

karol wrote:
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

#7 2013-05-07 14:11:22

Annorax
Member
From: MA, USA
Registered: 2012-01-16
Posts: 51

Re: [SOLVED] dwm: Changing terminal background?

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

#8 2013-05-07 14:23:31

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

Re: [SOLVED] dwm: Changing terminal background?

Please mark the thread as solved https://bbs.archlinux.org/viewtopic.php?id=130309

Offline

Board footer

Powered by FluxBB