Am 05.04.2013 um 01:00 schrieb Ted Unangst <[email protected]>: > dwm is the best wm ever
ACK :) > because I am literally unable to waste time > dicking around trying to customize it. But waste more time for trying several of the patches to make it behave like awesome, i3, scrotwm, etc. > However, I can understand the > appeal of other wms because people like it when their computer says, > "hey, look at me, i'm a unique snowflake." and it's kind of boring > when my dwm looks exactly like your dwm. why not the best of both > worlds? > > This patch picks random colors for dwm. If this is going to be committed I need the some sync mechanism for my carefully setup vim, mutt, tabbed, climm, irssi, tmux, xterm, ... color themes. Otherwise it will end up in a rainbow screen which makes my eyes bleeding. > Nothing too garish, the > choices are constrained to be in the neighborhood of the existing > defaults, but instead of all gray, you may see just a touch of green > or red in the status bar. I think this patch should be submitted to the upstream wiki: http://dwm.suckless.org/patches/ and not to the port. > It's still not configurable, although if you're really unhappy about > the colors you get, you can always exit and try again. I never exit :) Regarding customizations: I attached my small and hackish OpenBSD specific dwm status bar update shell script, which I use daily (started from my ~/.xsession). > Index: patches/patch-config_def_h > =================================================================== > RCS file: /cvs/ports/x11/dwm/patches/patch-config_def_h,v > retrieving revision 1.9 > diff -u -p -r1.9 patch-config_def_h > --- patches/patch-config_def_h 9 Jul 2012 16:33:40 -0000 1.9 > +++ patches/patch-config_def_h 4 Apr 2013 22:51:17 -0000 > @@ -1,6 +1,6 @@ > $OpenBSD: patch-config_def_h,v 1.9 2012/07/09 16:33:40 zinke Exp $ > ---- config.def.h.orig Mon Dec 19 16:02:46 2011 > -+++ config.def.h Sat Jul 7 22:28:18 2012 > +--- config.def.h.orig Mon Dec 19 10:02:46 2011 > ++++ config.def.h Thu Apr 4 18:46:24 2013 > @@ -1,13 +1,13 @@ > /* See LICENSE file for copyright and license details. */ > > @@ -13,12 +13,12 @@ $OpenBSD: patch-config_def_h,v 1.9 2012/ > -static const char selbgcolor[] = "#005577"; > -static const char selfgcolor[] = "#eeeeee"; > +static const char font[] = > "-*-terminus-medium-*-*-*-*-*-*-*-*-*-*-*"; > -+static const char normbordercolor[] = "#404040"; > -+static const char normbgcolor[] = "#202020"; > -+static const char normfgcolor[] = "#c0c0c0"; > -+static const char selbordercolor[] = "#8888ff"; > -+static const char selbgcolor[] = "#404040"; > -+static const char selfgcolor[] = "#f0f0f0"; > ++static char normbordercolor[] = "#404040"; > ++static char normbgcolor[] = "#202020"; > ++static char normfgcolor[] = "#c0c0c0"; > ++static char selbordercolor[] = "#8888ff"; > ++static char selbgcolor[] = "#404040"; > ++static char selfgcolor[] = "#f0f0f0"; > static const unsigned int borderpx = 1; /* border pixel of windows */ > static const unsigned int snap = 32; /* snap pixel */ > static const Bool showbar = True; /* False means no bar */ > Index: patches/patch-dwm_c > =================================================================== > RCS file: patches/patch-dwm_c > diff -N patches/patch-dwm_c > --- /dev/null 1 Jan 1970 00:00:00 -0000 > +++ patches/patch-dwm_c 4 Apr 2013 22:51:17 -0000 > @@ -0,0 +1,30 @@ > +$OpenBSD$ > +--- dwm.c.orig Thu Apr 4 18:28:41 2013 > ++++ dwm.c Thu Apr 4 18:45:45 2013 > +@@ -2126,8 +2126,26 @@ zoom(const Arg *arg) { > + pop(c); > + } > + > ++void > ++reinitconfig(void) > ++{ > ++ snprintf(normbordercolor, sizeof(normbordercolor), "#%6.6x", > ++ arc4random() & 0x003f3f3f); > ++ snprintf(normbgcolor, sizeof(normbgcolor), "#%6.6x", > ++ arc4random() & 0x001f1f1f); > ++ snprintf(normfgcolor, sizeof(normfgcolor), "#%6.6x", > ++ (arc4random() & 0x00ffffff) | 0x00c0c0c0); > ++ snprintf(selbordercolor, sizeof(selbordercolor), "#%6.6x", > ++ (arc4random() & 0x00ffffff) | 0x006060d0); > ++ snprintf(selbgcolor, sizeof(selbgcolor), "#%6.6x", > ++ arc4random() & 0x00373737); > ++ snprintf(selfgcolor, sizeof(selfgcolor), "#%6.6x", > ++ (arc4random() & 0x00ffffff) | 0x00d0d0d0); > ++} > ++ > + int > + main(int argc, char *argv[]) { > ++ reinitconfig(); > + if(argc == 2 && !strcmp("-v", argv[1])) > + die("dwm-"VERSION", © 2006-2011 dwm engineers, see LICENSE for > details\n"); > + else if(argc != 1) >
status-update.sh
Description: Binary data
