Nice! I can't wait to try this out, I constantly hit mod-m to try to switch
out of monocle mode yet somehow I never thought to implement this feature...
-Niki Yoshiuchi
On Tue, Nov 4, 2008 at 12:13 PM, Neale Pickett <neale_AT_woozle.org> wrote:
> This simple modification to setlayout causes a binding to toggle if it's
> already in the requested layout.
>
> void
> setlayout(const Arg *arg)
> {
> sellt ^= 1;
> if(arg && arg->v && (arg->v != lt[sellt]))
> lt[sellt] = (Layout *)arg->v;
> if(sel)
> arrange();
> else
> drawbar();
> }
>
> Now Alt-M toggles in and out of Monocle, etc. I far prefer this
> behavior, YMMV.
>
> Neale
>
>
Received on Tue Nov 04 2008 - 17:36:16 UTC
This archive was generated by hypermail 2.2.0 : Tue Nov 04 2008 - 17:48:04 UTC