shithub: bar

Download patch

ref: ac6ff8bcb7d220260aa04e06d3b42670f307d0da
parent: 55b6520c25a63e64653c2ce93bda6a4c049d9040
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Fri Nov 20 05:50:53 EST 2020

use box drawings light vertical instead of |

--- a/bar.c
+++ b/bar.c
@@ -106,7 +106,7 @@
 	t = bat < 0 || pread(bat, tmp, 4, 0) < 4 ? nil : strchr(tmp, ' ');
 	if(t != nil){
 		*t = 0;
-		snprint(bats, sizeof(bats), pos[0] == 'l' || pos[1] == 'l' ? " | %s%%" : "%s%% | ", tmp);
+		snprint(bats, sizeof(bats), pos[0] == 'l' || pos[1] == 'l' ? " │ %s%%" : "%s%% │ ", tmp);
 	}else{
 		bats[0] = 0;
 	}
@@ -125,7 +125,7 @@
 	flushimage(display, 1);
 	unlockdisplay(display);
 
-	snprint(s, sizeof(s), "%s%τ", bats[0] ? "100% | " : "", tf);
+	snprint(s, sizeof(s), "%s%τ", bats[0] ? "100% │ " : "", tf);
 	width = stringwidth(f, s);
 	place();
 }