X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/ab3d6a7dfe76d9857f2fc621034359a2a0bf09df..8f5f7a5b5a40ee535305927dd12ba83891d1b0b1:/layout.c diff --git a/layout.c b/layout.c index 04835a8..5bb6e97 100644 --- a/layout.c +++ b/layout.c @@ -216,6 +216,18 @@ setlayout(const char *arg) { drawstatus(); } +void +togglebar(const char *arg) { + if(bpos == BarOff) { + if((bpos = BARPOS) == BarOff) + bpos = BarTop; + } + else + bpos = BarOff; + updatebarpos(); + lt->arrange(); +} + void togglemax(const char *arg) { XEvent ev;