2009-10-16 11:28:54 +04:00
|
|
|
#!/bin/sh -f
|
2010-06-28 01:47:45 +04:00
|
|
|
test $#* '=' 0 || {
|
|
|
|
p="$PATH"
|
|
|
|
which rc >/dev/null || PATH="$PLAN9:$p"
|
|
|
|
which rc >/dev/null || PATH="/usr/local/plan9/bin:$p"
|
|
|
|
which rc >/dev/null || PATH="/usr/local/9/bin:$p"
|
|
|
|
which rc >/dev/null || PATH="/opt/plan9/bin:$p"
|
|
|
|
which rc >/dev/null || PATH="/opt/9/bin:$p"
|
|
|
|
which rc >/dev/null || PATH="/usr/plan9/bin:$p"
|
|
|
|
which rc >/dev/null || PATH="/usr/9/bin:$p"
|
|
|
|
exec rc $0
|
|
|
|
}
|
2009-10-13 13:38:54 +04:00
|
|
|
|
2009-04-04 02:59:23 +04:00
|
|
|
cd
|
2008-01-14 23:42:21 +03:00
|
|
|
scriptname=$0
|
|
|
|
oldpath=$path; path=($PLAN9/bin $path)
|
|
|
|
. wmii.rc wmiirc # Include utility functions
|
2007-04-14 08:07:52 +04:00
|
|
|
|
2008-01-14 23:42:21 +03:00
|
|
|
# WMII Configuration
|
2007-04-14 08:07:52 +04:00
|
|
|
|
2008-01-14 23:42:21 +03:00
|
|
|
# Keys
|
2009-10-10 22:57:00 +04:00
|
|
|
MODKEY=Mod4
|
2007-07-17 00:52:35 +04:00
|
|
|
UP=k
|
|
|
|
DOWN=j
|
|
|
|
LEFT=h
|
|
|
|
RIGHT=l
|
|
|
|
|
2008-01-21 02:00:21 +03:00
|
|
|
# Bars
|
|
|
|
noticetimeout=5
|
|
|
|
noticebar=/rbar/!notice
|
|
|
|
|
2008-01-14 23:42:21 +03:00
|
|
|
# Theme
|
|
|
|
wmiifont='drift,-*-fixed-*-*-*-*-9-*-*-*-*-*-*-*'
|
|
|
|
wmiifont='-*-fixed-medium-r-*-*-13-*-*-*-*-*-*-*'
|
2010-06-28 01:47:45 +04:00
|
|
|
wmiinormcol=('#000000' '#c1c48b' '#81654f')
|
|
|
|
wmiifocuscol=('#000000' '#81654f' '#000000')
|
2008-01-14 23:42:21 +03:00
|
|
|
wmiibackground='#333333'
|
2008-05-28 02:34:59 +04:00
|
|
|
wmiifloatbackground='#222222'
|
|
|
|
fn setbackground { xsetroot -solid $* }
|
2007-07-17 00:52:35 +04:00
|
|
|
|
2008-01-14 23:42:21 +03:00
|
|
|
# Programs
|
2007-07-17 00:52:35 +04:00
|
|
|
WMII_TERM=(xterm)
|
|
|
|
|
2007-02-23 06:36:50 +03:00
|
|
|
# Column Rules
|
|
|
|
wmiir write /colrules <<!
|
2010-06-06 14:06:14 +04:00
|
|
|
/gimp/ -> 17+83+41
|
|
|
|
/.*/ -> 62+38 # Golden Ratio
|
2007-02-23 06:36:50 +03:00
|
|
|
!
|
|
|
|
|
|
|
|
# Tagging Rules
|
2010-06-06 14:06:14 +04:00
|
|
|
wmiir write /rules <<!
|
2010-06-11 12:18:40 +04:00
|
|
|
# Apps with system tray icons like to their main windows
|
|
|
|
# Give them permission.
|
|
|
|
/^Pidgin:/ allow=+activate
|
|
|
|
|
2010-06-06 14:06:14 +04:00
|
|
|
# MPlayer and VLC don't float by default, but should.
|
2010-06-11 03:49:17 +04:00
|
|
|
/MPlayer|VLC/ floating=on
|
2010-06-11 12:18:40 +04:00
|
|
|
|
2010-06-06 14:06:14 +04:00
|
|
|
# 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
|
2007-02-23 06:36:50 +03:00
|
|
|
!
|
|
|
|
|
|
|
|
# Status Bar Info
|
2008-01-14 23:42:21 +03:00
|
|
|
fn status {
|
2010-06-26 01:21:12 +04:00
|
|
|
echo -n label `{uptime | sed 's/.*://; s/,//g'} '|' \
|
|
|
|
`{date} }
|
2010-05-28 19:05:01 +04:00
|
|
|
|
|
|
|
# Generic overridable startup details
|
2010-05-31 15:26:51 +04:00
|
|
|
fn startup { witray & }
|
2007-02-26 07:29:16 +03:00
|
|
|
|
2008-01-14 23:42:21 +03:00
|
|
|
# End Configuration
|
2007-06-27 06:39:03 +04:00
|
|
|
|
2008-01-21 02:00:21 +03:00
|
|
|
# For the time being, this file follows the lisp bracing
|
|
|
|
# convention. i.e.:
|
|
|
|
# if(frob this) {
|
|
|
|
# frob that
|
|
|
|
# if(frob theother) {
|
|
|
|
# unfrob this
|
|
|
|
# unfrob that}}
|
|
|
|
# Comments welcome.
|
|
|
|
|
2008-01-14 23:42:21 +03:00
|
|
|
confpath=`{echo $WMII_CONFPATH | sed 'y/:/ /'}
|
2007-06-27 06:39:03 +04:00
|
|
|
|
2007-07-17 00:52:35 +04:00
|
|
|
# Events
|
2008-01-14 23:42:21 +03:00
|
|
|
fn sigexit {
|
|
|
|
rm -f $progs_file
|
2010-05-28 19:05:01 +04:00
|
|
|
wi_cleankeys}
|
2007-02-26 07:29:16 +03:00
|
|
|
|
2008-01-21 02:00:21 +03:00
|
|
|
fn Event-CreateTag {
|
2010-06-26 01:21:12 +04:00
|
|
|
echo colors $wmiinormcol $wi_newline label $* | wmiir create /lbar/$"*}
|
2008-01-21 02:00:21 +03:00
|
|
|
fn Event-DestroyTag {
|
|
|
|
wmiir remove /lbar/$"*}
|
|
|
|
fn Event-FocusTag {
|
2010-06-26 01:21:12 +04:00
|
|
|
wmiir xwrite /lbar/$"* colors $wmiifocuscol}
|
2008-01-21 02:00:21 +03:00
|
|
|
fn Event-UnfocusTag {
|
2010-06-26 01:21:12 +04:00
|
|
|
wmiir xwrite /lbar/$"* colors $wmiinormcol}
|
2008-01-21 02:00:21 +03:00
|
|
|
fn Event-UrgentTag {
|
2008-01-22 02:22:42 +03:00
|
|
|
shift
|
2010-06-26 01:21:12 +04:00
|
|
|
wmiir xwrite /lbar/$"* label '*'$"*}
|
2008-01-21 02:00:21 +03:00
|
|
|
fn Event-NotUrgentTag {
|
2008-01-22 02:22:42 +03:00
|
|
|
shift
|
2010-06-26 01:21:12 +04:00
|
|
|
wmiir xwrite /lbar/$"* label $"*}
|
2008-05-28 02:34:59 +04:00
|
|
|
fn Event-AreaFocus {
|
|
|
|
if(~ $1 '~')
|
|
|
|
setbackground $wmiifloatbackground
|
|
|
|
if not
|
|
|
|
setbackground $wmiibackground }
|
2007-02-26 07:29:16 +03:00
|
|
|
|
2008-01-18 01:50:35 +03:00
|
|
|
fn Event-Unresponsive {
|
|
|
|
client = $1; shift
|
|
|
|
@{
|
|
|
|
msg = 'The following client is not responding. What would you like to do?'
|
|
|
|
resp = `{wihack -transient $client \
|
|
|
|
xmessage -nearmouse -buttons Kill,Wait -print \
|
2009-10-10 00:40:33 +04:00
|
|
|
$msg $wi_newline '' `{wmiir read /client/$client/label}}
|
2008-01-18 01:50:35 +03:00
|
|
|
if(~ $resp Kill)
|
2008-04-02 03:26:46 +04:00
|
|
|
wmiir xwrite /client/$client/ctl slay
|
|
|
|
}&}
|
2008-01-21 02:00:21 +03:00
|
|
|
fn Event-Notice {
|
2010-06-26 01:21:12 +04:00
|
|
|
wmiir xwrite $noticebar label $wi_arg
|
2007-03-01 05:18:26 +03:00
|
|
|
|
2008-01-21 02:00:21 +03:00
|
|
|
/bin/kill $xpid >[2]/dev/null # Let's hope this isn't reused...
|
|
|
|
{ sleep $noticetimeout; wmiir xwrite $noticebar ' ' }& # Bug...
|
|
|
|
xpid = $apid}
|
|
|
|
|
2008-01-21 09:21:37 +03:00
|
|
|
fn Event-LeftBar^(Click DND) {
|
2008-01-21 02:00:21 +03:00
|
|
|
shift; wmiir xwrite /ctl view $*}
|
2008-01-28 00:08:25 +03:00
|
|
|
|
|
|
|
fn ClientMenu-3-Delete {
|
|
|
|
wmiir xwrite /client/$1/ctl kill}
|
2008-10-22 20:50:06 +04:00
|
|
|
fn ClientMenu-3-Kill {
|
|
|
|
wmiir xwrite /client/$1/ctl slay}
|
2008-01-28 00:08:25 +03:00
|
|
|
fn ClientMenu-3-Fullscreen {
|
|
|
|
wmiir xwrite /client/$1/ctl Fullscreen on}
|
2007-02-26 12:27:03 +03:00
|
|
|
fn Event-ClientMouseDown {
|
2008-01-28 00:08:25 +03:00
|
|
|
wi_fnmenu Client $2 $1 &}
|
|
|
|
|
|
|
|
fn LBarMenu-3-Delete {
|
|
|
|
tag=$1; clients=`{wmiir read /tag/$tag/index | awk '/[^#]/{print $2}'}
|
|
|
|
for(c in $clients) {
|
|
|
|
if(~ $tag `{wmiir read /client/$c/tags})
|
|
|
|
wmiir xwrite /client/$c/ctl kill
|
|
|
|
if not
|
|
|
|
wmiir xwrite /client/$c/tags -$tag}
|
|
|
|
if(~ $tag `{wi_seltag}) {
|
|
|
|
newtag = `{wi_tags | awk -v't='$tag '
|
|
|
|
$1 == t { if(!l) getline l
|
|
|
|
print l
|
|
|
|
exit }
|
|
|
|
{ l = $0 }'}
|
|
|
|
wmiir xwrite /ctl view $newtag}}
|
|
|
|
fn Event-LeftBarMouseDown {
|
|
|
|
wi_fnmenu LBar $* &}
|
2007-02-23 06:36:50 +03:00
|
|
|
|
2008-01-14 23:42:21 +03:00
|
|
|
# Actions
|
2010-06-26 01:21:12 +04:00
|
|
|
fn Action-exec {
|
|
|
|
wmiir xwrite /ctl exec $*}
|
|
|
|
fn Action-quit {
|
|
|
|
wmiir xwrite /ctl quit}
|
2007-07-17 00:52:35 +04:00
|
|
|
fn Action-rehash {
|
2008-02-05 02:33:57 +03:00
|
|
|
comm -23 <{ls `{namespace}^/proglist.* >[2]/dev/null | awk -F'.' '{print $NF}'} \
|
2008-01-14 23:42:21 +03:00
|
|
|
<{ps | awk '{print $2}'} |
|
|
|
|
while(id=`{read})
|
2008-02-05 02:33:57 +03:00
|
|
|
rm `{namespace}^/proglist.$id
|
2008-01-21 02:00:21 +03:00
|
|
|
wi_proglist $PATH >$progs_file}
|
2010-06-26 01:21:12 +04:00
|
|
|
fn Action-showkeys {
|
|
|
|
echo $wmiikeyhelp | xmessage -file -
|
|
|
|
}
|
2007-02-23 06:36:50 +03:00
|
|
|
fn Action-status {
|
2007-07-17 00:52:35 +04:00
|
|
|
flag x -; flag r -
|
2007-02-23 06:36:50 +03:00
|
|
|
if(wmiir remove /rbar/status >[2]/dev/null)
|
2007-03-01 23:20:53 +03:00
|
|
|
sleep 2
|
2010-06-26 01:21:12 +04:00
|
|
|
echo colors $wmiinormcol | wmiir create /rbar/status
|
2007-02-23 06:36:50 +03:00
|
|
|
while(status | wmiir write /rbar/status)
|
|
|
|
sleep 1
|
|
|
|
}
|
|
|
|
|
2007-06-27 06:39:03 +04:00
|
|
|
# Source Variables, &c
|
2009-10-13 13:38:54 +04:00
|
|
|
if(~ $0 ('' */)wmiirc_local.rc)
|
|
|
|
wi_notice This file should not be named wmiirc_local.rc
|
2008-01-14 23:42:21 +03:00
|
|
|
if not
|
2009-10-13 13:38:54 +04:00
|
|
|
. `{wi_script -f wmiirc_local.rc}
|
2010-07-02 11:33:09 +04:00
|
|
|
echo colors $wmiinormcol | wmiir create $noticebar
|
2010-05-28 19:05:01 +04:00
|
|
|
startup
|
2007-06-27 06:39:03 +04:00
|
|
|
|
2007-02-23 06:36:50 +03:00
|
|
|
# Key Bindings
|
2008-05-18 21:31:58 +04:00
|
|
|
_keys = `{wi_getfuns Key}
|
2010-06-26 01:21:12 +04:00
|
|
|
fn keygroup {
|
|
|
|
wmiikeyhelp = $wmiikeyhelp ^ $wi_newline ^ ' ' ^ $"* ^ $wi_newline}
|
2007-07-17 00:52:35 +04:00
|
|
|
fn key {
|
2010-06-26 01:21:12 +04:00
|
|
|
help=$1; shift
|
2007-07-17 00:52:35 +04:00
|
|
|
key=()
|
2010-06-26 01:21:12 +04:00
|
|
|
for(k) {
|
|
|
|
if(! ~ $k $_keys) {
|
2010-06-28 01:47:45 +04:00
|
|
|
ifs=() { wmiikeyhelp = `{
|
|
|
|
printf "%s %- 20s %s\n" $wmiikeyhelp $k $help}}
|
2010-06-26 01:21:12 +04:00
|
|
|
key = ($key Key-$k)}}
|
2008-01-21 02:00:21 +03:00
|
|
|
~ $#key 0}
|
2007-07-17 00:52:35 +04:00
|
|
|
|
2010-06-26 01:21:12 +04:00
|
|
|
keygroup Moving around
|
|
|
|
key 'Select the client to the left' $MODKEY-$LEFT || fn $key {
|
2008-01-21 02:00:21 +03:00
|
|
|
wmiir xwrite /tag/sel/ctl select left}
|
2010-06-26 01:21:12 +04:00
|
|
|
key 'Select the client to the right' $MODKEY-$RIGHT || fn $key {
|
2008-01-21 02:00:21 +03:00
|
|
|
wmiir xwrite /tag/sel/ctl select right}
|
2010-06-26 01:21:12 +04:00
|
|
|
key 'Select the client below' $MODKEY-$DOWN || fn $key {
|
2008-01-21 02:00:21 +03:00
|
|
|
wmiir xwrite /tag/sel/ctl select down}
|
2010-06-26 01:21:12 +04:00
|
|
|
key 'Select the client above' $MODKEY-$UP || fn $key {
|
2008-01-21 02:00:21 +03:00
|
|
|
wmiir xwrite /tag/sel/ctl select up}
|
2010-06-26 01:21:12 +04:00
|
|
|
|
|
|
|
key 'Toggle between floating and managed layers' $MODKEY-space || fn $key {
|
|
|
|
wmiir xwrite /tag/sel/ctl select toggle}
|
|
|
|
|
|
|
|
keygroup Moving through stacks
|
|
|
|
key 'Select the stack below' $MODKEY-Control-$DOWN || fn $key {
|
2008-05-26 05:53:14 +04:00
|
|
|
wmiir xwrite /tag/sel/ctl select down stack}
|
2010-06-26 01:21:12 +04:00
|
|
|
key 'Select the stack above' $MODKEY-Control-$UP || fn $key {
|
2008-05-26 05:53:14 +04:00
|
|
|
wmiir xwrite /tag/sel/ctl select up stack}
|
2008-01-21 02:00:21 +03:00
|
|
|
|
2010-06-26 01:21:12 +04:00
|
|
|
keygroup Moving clients around
|
|
|
|
key 'Move selected client to the left' $MODKEY-Shift-$LEFT || fn $key {
|
2008-01-21 02:00:21 +03:00
|
|
|
wmiir xwrite /tag/sel/ctl send sel left}
|
2010-06-26 01:21:12 +04:00
|
|
|
key 'Move selected client to the right' $MODKEY-Shift-$RIGHT || fn $key {
|
2008-01-21 02:00:21 +03:00
|
|
|
wmiir xwrite /tag/sel/ctl send sel right}
|
2010-06-26 01:21:12 +04:00
|
|
|
key 'Move selected client down' $MODKEY-Shift-$DOWN || fn $key {
|
2008-01-21 02:00:21 +03:00
|
|
|
wmiir xwrite /tag/sel/ctl send sel down}
|
2010-06-26 01:21:12 +04:00
|
|
|
key 'Move selected client up' $MODKEY-Shift-$UP || fn $key {
|
2008-01-21 02:00:21 +03:00
|
|
|
wmiir xwrite /tag/sel/ctl send sel up}
|
|
|
|
|
2010-06-26 01:21:12 +04:00
|
|
|
key 'Toggle selected client between floating and managed layers' $MODKEY-Shift-space || fn $key {
|
|
|
|
wmiir xwrite /tag/sel/ctl send sel toggle}
|
|
|
|
|
|
|
|
keygroup Client actions
|
|
|
|
key 'Toggle selected client''s fullsceen state' $MODKEY-f || fn $key {
|
2008-01-21 02:00:21 +03:00
|
|
|
wmiir xwrite /client/sel/ctl Fullscreen toggle}
|
2010-06-26 01:21:12 +04:00
|
|
|
key 'Close client' $MODKEY-Shift-c || fn $key {
|
|
|
|
wmiir xwrite /client/sel/ctl kill}
|
2008-01-21 02:00:21 +03:00
|
|
|
|
2010-06-26 01:21:12 +04:00
|
|
|
keygroup Changing column modes
|
|
|
|
key 'Set column to default mode' $MODKEY-d || fn $key {
|
2008-06-01 19:28:37 +04:00
|
|
|
wmiir xwrite /tag/sel/ctl colmode sel default-max}
|
2010-06-26 01:21:12 +04:00
|
|
|
key 'Toggle between floating and managed layers' $MODKEY-s || fn $key {
|
2008-06-01 19:28:37 +04:00
|
|
|
wmiir xwrite /tag/sel/ctl colmode sel stack-max}
|
2010-06-26 01:21:12 +04:00
|
|
|
key 'Set column to max mode' $MODKEY-m || fn $key {
|
2008-06-01 19:28:37 +04:00
|
|
|
wmiir xwrite /tag/sel/ctl colmode sel stack+max}
|
2008-01-21 02:00:21 +03:00
|
|
|
|
2010-06-26 01:21:12 +04:00
|
|
|
keygroup Running programs
|
|
|
|
key 'Open wmii actions menu' $MODKEY-a || fn $key {
|
2008-10-16 07:15:42 +04:00
|
|
|
Action `{wi_actions | wimenu -h $hist.action -n $histlen} &}
|
2010-06-26 01:21:12 +04:00
|
|
|
key 'Open program menu' $MODKEY-p || fn $key {
|
2008-10-16 22:39:36 +04:00
|
|
|
ifs=() { cmd = `{wimenu -h $hist.prog -n $histlen <$progs_file} }
|
2008-10-16 07:59:17 +04:00
|
|
|
wi_runcmd $cmd & }
|
2008-10-16 07:15:42 +04:00
|
|
|
|
2010-06-26 01:21:12 +04:00
|
|
|
key 'Launch a terminal' $MODKEY-Return || fn $key {
|
2008-01-21 02:00:21 +03:00
|
|
|
wi_runcmd $WMII_TERM &}
|
|
|
|
|
2010-06-26 01:21:12 +04:00
|
|
|
keygroup Other
|
|
|
|
key 'Toggle all other key bindings' $MODKEY-Control-t || fn $key {
|
|
|
|
switch(`{wmiir read /keys | wc -l}) {
|
|
|
|
case 0 1
|
|
|
|
wmiir xwrite /keys $keys
|
|
|
|
wmiir xwrite /ctl grabmod $MODKEY
|
|
|
|
case *
|
|
|
|
ifs=() { keys=`{wmiir read /keys} }
|
|
|
|
wmiir xwrite /keys $MODKEY-Control-t
|
|
|
|
wmiir xwrite /ctl grabmod Mod3
|
|
|
|
}}
|
|
|
|
|
|
|
|
keygroup Tag actions
|
|
|
|
key 'Change to another tag' $MODKEY-t || fn $key {
|
2009-05-27 21:22:24 +04:00
|
|
|
tag=`{wi_tags | wimenu -h $hist.tag -n 50} && wmiir xwrite /ctl view $tag &}
|
2010-06-26 01:21:12 +04:00
|
|
|
key 'Retag the selected client' $MODKEY-Shift-t || fn $key {
|
2009-05-27 21:22:24 +04:00
|
|
|
sel=`{wi_selclient} {
|
|
|
|
tag=`{wi_tags | wimenu -h $hist.tag -n 50} && wmiir xwrite /client/$sel/tags $tag } &}
|
2010-06-26 01:21:12 +04:00
|
|
|
key 'Move to the next tag' $MODKEY-n || fn $key {
|
|
|
|
wmiir xwrite /ctl view `{wi_tags | wi_nexttag}}
|
|
|
|
key 'Move to the previous tag' $MODKEY-b || fn $key {
|
|
|
|
wmiir xwrite /ctl view `{wi_tags | sort -r | wi_nexttag}}
|
2007-02-23 22:05:46 +03:00
|
|
|
|
2010-06-26 01:21:12 +04:00
|
|
|
key 'Move to the numbered view' $MODKEY-^`{seq 0 9} || fn $key {
|
2008-01-21 02:00:21 +03:00
|
|
|
wmiir xwrite /ctl view `{echo $1 | sed 's/.*-//'}}
|
2010-06-26 01:21:12 +04:00
|
|
|
key 'Retag selected client with the numbered tag' Shift-$MODKEY-^`{seq 0 9} || fn $key {
|
2008-01-21 02:00:21 +03:00
|
|
|
wmiir xwrite /client/sel/tags `{echo $1 | sed 's/.*-//'}}
|
2010-06-26 01:21:12 +04:00
|
|
|
# WM Configuration
|
2007-02-24 03:50:02 +03:00
|
|
|
wmiir write /ctl <<!
|
2008-01-14 23:42:21 +03:00
|
|
|
grabmod $MODKEY
|
|
|
|
border 2
|
|
|
|
font $wmiifont
|
|
|
|
focuscolors $wmiifocuscol
|
|
|
|
normcolors $wmiinormcol
|
2007-02-24 03:50:02 +03:00
|
|
|
!
|
2008-05-28 02:34:59 +04:00
|
|
|
setbackground $wmiibackground
|
2007-02-24 03:50:02 +03:00
|
|
|
|
2007-04-01 01:22:30 +04:00
|
|
|
# Source Overrides
|
2008-01-14 23:42:21 +03:00
|
|
|
Action overridekeys
|
2007-04-01 01:22:30 +04:00
|
|
|
|
2007-02-23 06:36:50 +03:00
|
|
|
# Misc Setup
|
2008-02-05 02:33:57 +03:00
|
|
|
progs_file=`{namespace}^/proglist.$pid
|
2008-12-10 23:30:39 +03:00
|
|
|
hist=`{echo $WMII_CONFPATH | sed 's,:.*,/,'}^/history
|
2008-10-15 03:00:58 +04:00
|
|
|
histlen=5000
|
2008-06-01 02:42:13 +04:00
|
|
|
Action status &
|
|
|
|
Action rehash &
|
2007-02-23 06:36:50 +03:00
|
|
|
|
2007-02-26 07:29:16 +03:00
|
|
|
# Tag Bar Setup
|
2009-10-10 00:40:33 +04:00
|
|
|
ifs=$wi_newline {
|
2008-01-29 01:58:23 +03:00
|
|
|
rc -c 'wmiir rm /lbar/^$*' >[2]/dev/null \
|
|
|
|
`{comm -23 <{wmiir ls /lbar} \
|
2008-01-28 00:08:25 +03:00
|
|
|
<{wi_tags}}
|
|
|
|
seltag=`{wi_seltag}
|
2008-01-29 01:58:23 +03:00
|
|
|
for(tag in `{wi_tags}) {{
|
2007-02-23 06:36:50 +03:00
|
|
|
if(~ $tag $seltag)
|
2010-06-26 01:21:12 +04:00
|
|
|
echo colors $wmiifocuscol $wi_newline label $tag
|
2007-02-23 06:36:50 +03:00
|
|
|
if not
|
2010-06-26 01:21:12 +04:00
|
|
|
echo colors $wmiinormcol $wi_newline label $tag
|
2008-01-29 01:58:23 +03:00
|
|
|
} | wmiir create /lbar/$tag}}
|
2008-01-14 23:42:21 +03:00
|
|
|
wi_eventloop
|