X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=layout.c;h=0dc062f1a59bcb50041b60e7a906a0ad8f2f8a27;hb=2aef8b9b4ce0900d241c60cb3a07e111c825d13a;hp=04835a8c340fd89d790f224f6ac9aad36560cd24;hpb=ab3d6a7dfe76d9857f2fc621034359a2a0bf09df;p=dwm.git diff --git a/layout.c b/layout.c index 04835a8..0dc062f 100644 --- a/layout.c +++ b/layout.c @@ -216,6 +216,12 @@ setlayout(const char *arg) { drawstatus(); } +void +togglebar(const char *arg) { + bpos = (bpos == BarOff) ? BARPOS : BarOff; + updatebarpos(); +} + void togglemax(const char *arg) { XEvent ev;