commit d82f5b113a20955c5557924b645df45426e75cea
parent 8a01b0b63e4823a4185a321eb45044841e4902f9
Author: Kris Maglione <jg@suckless.org>
Date: Mon, 2 Jun 2008 11:52:29 -0400
Fix some rc bugs, update wmiirc.
Diffstat:
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/cmd/wmii.rc.rc b/cmd/wmii.rc.rc
@@ -71,7 +71,7 @@ fn wi_fn-p {
fn wi_proglist {
# XXX: maxdepth is not POSIX compliant.
- ifs=: { find -L `{echo $*} -type f -a -maxdepth 1 \
+ ifs=: { find -L `{echo -n $*} -type f -a -maxdepth 1 \
'(' -perm -0100 -o -perm -0010 -o -perm -0001 ')' >[2]/dev/null \
| sed 's,.*/,,' | sort | uniq}
}
diff --git a/rc/wmiirc.sh b/rc/wmiirc.sh
@@ -42,6 +42,7 @@ status() {
echo -n $(uptime | sed 's/.*://; s/,//g') '|' $(date)
}
+local_events() { true;}
wi_runconf -s wmiirc_local
echo $WMII_NORMCOLORS | wmiir create $noticebar
@@ -180,6 +181,10 @@ events() {
wmiir xwrite /tag/sel/ctl select down
Key $MODKEY-$UP
wmiir xwrite /tag/sel/ctl select up
+ Key $MODKEY-Control-$DOWN
+ wmiir xwrite /tag/sel/ctl select down stack
+ Key $MODKEY-Control-$UP
+ wmiir xwrite /tag/sel/ctl select up stack
Key $MODKEY-Shift-$LEFT
wmiir xwrite /tag/sel/ctl send sel left
Key $MODKEY-Shift-$RIGHT
@@ -200,7 +205,7 @@ events() {
}
wi_events <<!
$(events)
-$local_events
+$(local_events)
!
unset events local_events