X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=layout.c;h=bc5ca1c0df3a5af198e98e79f3a3162805014e2f;hb=1e826ddd3ee0159bf2bd296a24e557b0d971ed91;hp=04835a8c340fd89d790f224f6ac9aad36560cd24;hpb=ab3d6a7dfe76d9857f2fc621034359a2a0bf09df;p=dwm.git diff --git a/layout.c b/layout.c index 04835a8..bc5ca1c 100644 --- a/layout.c +++ b/layout.c @@ -217,6 +217,16 @@ setlayout(const char *arg) { } void +togglebar(const char *arg) { + if(bpos == BarOff) + bpos = (BARPOS == BarOff) ? BarTop : BARPOS; + else + bpos = BarOff; + updatebarpos(); + lt->arrange(); +} + +void togglemax(const char *arg) { XEvent ev;