[wmii] Re: [wmi-devel] action "decorationstoggle"

From: Frank Boehme <f.boehme_AT_cs.ucc.ie>
Date: Thu, 20 Oct 2005 14:46:59 +0100

First post on the new list :-))

Sebastian Roth wrote:

> #!/usr/local/9/bin/rc
> # toggle tab and border
>
> if(test `{wmir read /wm/page/sel/mode/sel/tab-height} -eq 0 && test
> `{wmir read /wm/page/sel/mode/sel/border-width} -eq 0){
> tab
> border
> exit
> }
> tab 0
> border 0
> '

If you have floating layout and toggle the decoration of a frame a few
times, the window gradually gets smaller. I believe tab n and/or border
n behaves slightly exceptionally when n==0.

Frank

-- 
Dr Frank Boehme                      | Email: f.boehme_AT_cs.ucc.ie
National University of Ireland, Cork | phone: +353-21-4903163
Dept of Computer Science             |   fax: +353-21-4903113
Cork, Ireland                        |
Did you know that if you play a Windows XP cd backwards, you
will hear the voice of Satan?
That's nothing! If you play it forward, it'll install Windows XP.
Received on Thu Oct 20 2005 - 16:35:19 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:59:22 UTC