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