[hackers] [wmii] Have rc.wmii source rc.wmii.var; I don't like it, but MODKEY must be set before the Key-* functions are defined, and override functions after. I can think of few other solutions.

From: Kris Maglione <jg_AT_suckless.org>
Date: Sun Feb 25 05:40:46 2007

changeset: 1949:c476fac1fa53
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Sat Feb 24 23:36:16 2007 -0500
summary: Have rc.wmii source rc.wmii.var; I don't like it, but MODKEY must be set before the Key-* functions are defined, and override functions after. I can think of few other solutions.

diff -r 24f639eb3322 -r c476fac1fa53 rc/rc.wmii
--- a/rc/rc.wmii Fri Feb 23 23:09:58 2007 -0500
+++ b/rc/rc.wmii Sat Feb 24 23:36:16 2007 -0500
@@ -22,6 +22,10 @@ fn wmiimenu {
                 -nf $WMII_NORMCOLORS(1) -nb $WMII_NORMCOLORS(2) \
                 -sf $WMII_FOCUSCOLORS(1) -sb $WMII_FOCUSCOLORS(2)
 }
+
+local = `{config_whatis rc.wmii.var}
+if(! ~ $#local 0)
+ . $local
 
 # Column Rules
 wmiir write /colrules <<!
Received on Sun Feb 25 2007 - 05:40:46 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:55:54 UTC