commit 3fbfc4957dc87dca3f28be6b7eea878f8312816f
parent 356f67601524a1d3aeb84279962c6280e0e95d65
Author: Kris Maglione <jg@suckless.org>
Date: Sat, 3 Mar 2007 12:09:36 -0500
Don't delete bar items for which there are tags on startup.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/rc/rc.wmii b/rc/rc.wmii
@@ -92,7 +92,7 @@ fn Event-ClientMouseDown {
# Actions
fn Action {
action=$1; shift
- if(whatis Action-$action | 9 grep -s '^fn ') {
+ if(whatis Action-$action | grep -s '^fn ') {
Action-$action $* &
};if not {
run_command `{config_whatis $action} $* &
@@ -204,7 +204,7 @@ proglist $PATH >$progs_file &
# Tag Bar Setup
ifs='#
-'{ for(bar in `{wmiir ls /lbar})
+'{ for(bar in `{comm -1 <{wmiir ls /lbar} <{read_tags}})
wmiir remove /lbar/$bar
seltag=`{wmiir read /tag/sel/ctl}
for(tag in `{read_tags}) {