[hackers] [wmii] Fixed WMII_MENU and WMII_TERM. They are now functions: wmiimenu and wmiiterm.

From: Kris Maglione <jg_AT_suckless.org>
Date: Fri Feb 23 19:49:18 2007

changeset: 1941:68cce217ea01
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Fri Feb 23 13:48:21 2007 -0500
summary: Fixed WMII_MENU and WMII_TERM. They are now functions: wmiimenu and wmiiterm.

diff -r 65f402e1edad -r 68cce217ea01 rc/rc.wmii
--- a/rc/rc.wmii Fri Feb 23 01:53:08 2007 -0500
+++ b/rc/rc.wmii Fri Feb 23 13:48:21 2007 -0500
@@ -14,9 +14,14 @@ WMII_NORMCOLORS='#222222 #5FBF77 #2A7F3F
 WMII_NORMCOLORS='#222222 #5FBF77 #2A7F3F'
 WMII_FOCUSCOLORS='#ffffff #153F1F #2A7F3F'
 WMII_BACKGROUND='#333333'
-WMII_TERM='xterm'
-
-WMII_MENU=(dmenu -b -fn $WMII_FONT -nb '#eeeeee' -nf '#222222' -sb '#335577' -sf '#ffffff')
+
+fn wmiiterm {
+ xterm
+}
+
+fn wmiimenu {
+ dmenu -b -fn $WMII_FONT -nb '#eeeeee' -nf '#222222' -sb '#335577' -sf '#ffffff'
+}
 
 # Column Rules
 wmiir write /colrules <<!
@@ -133,16 +138,16 @@ fn Key-$MODKEY-m {
         wmiir xwrite /tag/sel/ctl colmode sel max
 }
 fn Key-$MODKEY-a {
- Action `{actionlist | $WMII_MENU} &
+ Action `{actionlist | wmiimenu} &
 }
 fn Key-$MODKEY-p {
         run_command `{wmiimenu <$progs_file} &
 }
 fn Key-$MODKEY-Return {
- run_command $WMII_TERM &
+ run_command wmiiterm &
 }
 fn Key-$MODKEY-t {
- wmiir xwrite /ctl view `{tagsmenu | $WMII_MENU} &
+ wmiir xwrite /ctl view `{tagsmenu | wmiimenu} &
 }
 fn Key-$MODKEY-Shift-$LEFT {
         wmiir xwrite /tag/sel/ctl send sel left
@@ -163,7 +168,7 @@ fn Key-$MODKEY-Shift-c {
         wmiir xwrite /client/sel/ctl kill
 }
 fn Key-$MODKEY-Shift-t {
- wmiir xwrite /client/`{wmiir read /client/sel/ctl}/tags `{tagsmenu | $WMII_MENU} &
+ wmiir xwrite /client/`{wmiir read /client/sel/ctl}/tags `{tagsmenu | wmiimenu} &
 }
 for(i in `{seq 0 9}) {
         fn Key-$MODKEY-$i {
Received on Fri Feb 23 2007 - 19:49:18 UTC

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