mirror of
https://github.com/0intro/wmii
synced 2025-01-08 11:22:23 +03:00
Fix /rules in wmiirc and p9p/wmiirc.
This commit is contained in:
parent
53a479f79a
commit
fa4beb5aa8
@ -48,7 +48,7 @@ wmiir write /colrules <<!
|
||||
# Tagging Rules
|
||||
wmiir write /rules <<!
|
||||
# MPlayer and VLC don't float by default, but should.
|
||||
/MPlayer|VLC/ floating=True
|
||||
/MPlayer|VLC/ floating=on
|
||||
# ROX puts all of its windows in the same group, so they open
|
||||
# with the same tags. Disable grouping for ROX Filer.
|
||||
/^ROX-Filer:/ group=0
|
||||
|
@ -1124,7 +1124,7 @@ client_applytags(Client *c, const char *tags) {
|
||||
if(!isspace(tags[n]))
|
||||
break;
|
||||
|
||||
if(tags[n] == '+' || tags[n] == '-')
|
||||
if(tags[n] == '+' || tags[n] == '-' || tags[n] == '\0')
|
||||
utflcpy(buf, c->tags, sizeof c->tags);
|
||||
else {
|
||||
refree(&c->tagre);
|
||||
|
10
rc/wmiirc.sh
10
rc/wmiirc.sh
@ -51,7 +51,7 @@ wmiir write /colrules <<!
|
||||
# Tagging Rules
|
||||
wmiir write /rules <<!
|
||||
# MPlayer and VLC don't float by default, but should.
|
||||
/MPlayer|VLC/ floating=True
|
||||
/MPlayer|VLC/ floating=on
|
||||
# ROX puts all of its windows in the same group, so they open
|
||||
# with the same tags. Disable grouping for ROX Filer.
|
||||
/^ROX-Filer:/ group=0
|
||||
@ -228,10 +228,10 @@ Key $MODKEY-Control-t # Toggle all other key bindings
|
||||
|
||||
KeyGroup Tag actions
|
||||
Key $MODKEY-t # Change to another tag
|
||||
(tag=$(wi_tags | wimenu -h "${hist}.tags" -n 50) && wmiir xwrite /ctl view $tag) &
|
||||
wmiir xwrite /ctl view $(wi_tags | wimenu -h "${hist}.tags" -n 50) &
|
||||
Key $MODKEY-Shift-t # Retag the selected client
|
||||
c=$(wi_selclient)
|
||||
(tag=$(wi_tags | wimenu -h "${hist}.tags" -n 50) && wmiir xwrite /client/$c/tags $tag) &
|
||||
# Assumes left-to-right order of evaluation
|
||||
wmiir xwrite /client/$(wi_selclient)/tags $(wi_tags | wimenu -h "${hist}.tags" -n 50) &
|
||||
!
|
||||
for i in 0 1 2 3 4 5 6 7 8 9; do
|
||||
cat <<!
|
||||
@ -261,7 +261,7 @@ wi_proglist $PATH >$progsfile &
|
||||
|
||||
# Setup Tag Bar
|
||||
IFS="$wi_newline"
|
||||
wmiir rm $(wmiir ls /lbar | sed 's,^,/lbar/,') >/dev/null
|
||||
wmiir rm $(wmiir ls -p /lbar) >/dev/null
|
||||
seltag=$(wmiir read /tag/sel/ctl | sed 1q)
|
||||
unset IFS
|
||||
wi_tags | while read tag
|
||||
|
Loading…
Reference in New Issue
Block a user