On Fri, Nov 20, 2009 at 01:08:13AM -0500, Nick Guenther wrote:
Actually
$ wmii -v
wmii-3.6, ��2007 Kris Maglione
I thought I was on 3.5 because it installs the files
/usr/local/share/examples/wmii-3.5/rc.wmii
/usr/local/share/examples/wmii-3.5/welcome
/usr/local/share/examples/wmii-3.5/wmiirc
I'll bug.. somebody about that.
That was a very strange and generally silly design decision.
It's fixed. You really should switch to a UTF-8 locale...
This works in newer versions, but as mentioned above, 3.5 is ancient. If
you want to find out whether a client is floating, read /tag/sel/index and
see if it's in the '~' area.
Ooh, thanks for that tip. And if sending to the floating layer does
work in newer versions I'm satisfied. However if I'm actually on 3.6
should that line work like I think? What's going on?
You might have to use 0 instead on 3.6. Otherwise, you'll just
have to grep /tag/sel/index and see whether the client's
floating to decide whether to toggle it.
As for dmenu, here's a clip from /etc/wmii-3.5/wmiirc (which I copied
to my userdir before doing anything):
<<CLIP
WMII_BACKGROUND='#333333'
WMII_FONT='-*-fixed-medium-r-*-*-13-*-*-*-*-*-*-*'
set -- $(echo $WMII_NORMCOLORS $WMII_FOCUSCOLORS)
WMII_MENU="dmenu -b -fn '$WMII_FONT' -nf '$1' -nb '$2' -sf '$4' -sb '$5'"
WMII_9MENU="wmii9menu -font '$WMII_FONT' -nf '$1' -nb '$2' -sf '$4'
-sb '$5' -br '$6'"
WMII_TERM="xterm"
# Column Rules
wmiir write /colrules <<!
/.*/ -> 58+42
!
CLIP
You guys didn't put that in there?
3.6 uses dmenu (and those god awful MENU variables...). It's the
only version that did, but I thought you were using 3.5, so you
can understand my confusion.
This is indeed strange, but I'd expect tagrules to do exactly what you
want. In newer versions, I'd suggest wihack, although I'm reminded it lacks
a man page...
No, tagrules works exactly how I want. And for zenity (which is /all/
modal dialogs) it's fine. But I can imagine running into a case where
I want to float THIS instance and no other. More generally, wmii seems
to just be incomplete without a knob for this.
So do I need 3.9 to be able to do this?
Well, see above, but you need 3.9 if you want to use wihack,
which I suggest (despite it being, well, a hack).
--
Kris Maglione
When you start off by telling those who disagree with you that they
are not merely in error but in sin, how much of a dialogue do you
expect?
--Thomas Sowell