shithub: bar

Download patch

ref: f34cd2fe2f884b250bf0c4396cfe4186b34b2bf9
parent: 28ee794ab5542ed1498fa40bc5219b1dd6518607
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Wed Nov 18 14:46:02 EST 2020

use Borderwidth

--- a/bar.c
+++ b/bar.c
@@ -47,9 +47,9 @@
 		}
 		if(pos[0] == 'l' || pos[1] == 'l'){
 			minx = 0;
-			maxx = 4+width+4;
+			maxx = Borderwidth+width+Borderwidth;
 		}else{
-			minx = w-4-width-4;
+			minx = w-Borderwidth-width-Borderwidth;
 			maxx = w;
 		}
 		fprint(wctl, "resize -r %d %d %d %d", minx, miny, maxx, maxy);