[wiki] [sites] added bottom margin patch || Julian A
commit c6f9ebf258152b1864d8a72e8733c1e386350732
Author: Julian A <nope>
Date: Sat Jun 7 19:22:53 2014 +0200
added bottom margin patch
diff --git a/dwm.suckless.org/patches/bottommargin.md b/dwm.suckless.org/patches/bottommargin.md
new file mode 100644
index 0000000..2dd33ae
--- /dev/null
+++ b/dwm.suckless.org/patches/bottommargin.md
_AT_@ -0,0 +1,13 @@
+# bottommargin
+
+## Description
+
+Adds a variable margin at the bottom for status or notification bars
+
+## Download
+
+ * [dwm-6.0-bottommargin.diff](dwm-6.0-bottommargin.diff) dwm-6.0-bottommargin.diff (07.06.2014)
+
+## Author
+
+ * Julian A.
diff --git a/dwm.suckless.org/patches/dwm-6.0-bottommargin.diff b/dwm.suckless.org/patches/dwm-6.0-bottommargin.diff
new file mode 100644
index 0000000..99ee0b0
--- /dev/null
+++ b/dwm.suckless.org/patches/dwm-6.0-bottommargin.diff
_AT_@ -0,0 +1,26 @@
+diff --git a/config.def.h b/config.def.h
+index 77ff358..203d354 100644
+--- a/config.def.h
++++ b/config.def.h
+_AT_@ -12,6 +12,7 @@ static const unsigned int borderpx = 1; /* border pixel of windows */
+ static const unsigned int snap = 32; /* snap pixel */
+ static const Bool showbar = True; /* False means no bar */
+ static const Bool topbar = True; /* False means bottom bar */
++static const unsigned int bottommargin = 20; /* Margin at the bottom for another bar */
+
+ /* tagging */
+ static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
+diff --git a/dwm.c b/dwm.c
+index 1d78655..cece290 100644
+--- a/dwm.c
++++ b/dwm.c
+_AT_@ -1841,6 +1841,9 @@ updatebarpos(Monitor *m) {
+ m->wh = m->mh;
+ if(m->showbar) {
+ m->wh -= bh;
++ m->wh -= marginbottom;
++ if(!m->topbar)
++ m->wy += marginbottom;
+ m->by = m->topbar ? m->wy : m->wy + m->wh;
+ m->wy = m->topbar ? m->wy + bh : m->wy;
+ }
Received on Sat Jun 07 2014 - 19:23:05 CEST
This archive was generated by hypermail 2.3.0
: Thu Jun 18 2015 - 17:38:58 CEST