made bar togglalble
[dwm.git] / layout.c
index 04835a8..0dc062f 100644 (file)
--- 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;