Re: [dwm] [PATCH] An experiment with X resources

From: WyrmSkull <>
Date: Tue, 25 Sep 2007 11:41:43 +0200

I prefer the fast recompile-reload approach than the .Xresources one.
It also works if you edit other source files.

All config.h files could be put in a "theme" directory and let a
(su) bash script (+zenity,dmenu,gtk or whatever) select which is
to be compiled.

If the compile process goes wrong, the old DWM binary could be saved
(28532 bytes) by the script to restore the old configuration,
then prompt an error message - if you like this kind of automation.
Should the process go well, the saved DWM is deleted.

DWM launch time is almost unnoticeable to me, and I don't care if
I have to wait a 7-8 seconds compile to change "theme".
DWM relies on being short and simple - easy and fast to be compiled.

What about having some default bash scripts keybinding?
MODKEY | ShiftMask, XK_(F1 to F10), spawn, "exec bash_script_(01 to 10).sh"
0 byte files don't take too much space, 0 LOC, and can be edited runtime.

You can add "edit_keybind_(F1 to F10)" dmenu entries and a "change
theme" one.

I think that DWM is ready to face those problems. You just need
the right external tools.

Received on Tue Sep 25 2007 - 11:44:04 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:55:30 UTC