From ed372bf8cb42e7d363c0d5a06808666d61713e87 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Wed, 3 Mar 2021 21:17:59 -0500 Subject: make the volume and brightness not shift the status bar around --- bin/hornet/status | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/hornet/status b/bin/hornet/status index f360aff..b3c651e 100755 --- a/bin/hornet/status +++ b/bin/hornet/status @@ -139,6 +139,7 @@ sub handle_i3status { } chomp(my $brightness = `backlight get`); + $brightness = sprintf("%3d", $brightness); splice @$line, -1, 0, { name => 'brightness', full_text => "\N{WHITE SUN WITH RAYS} $brightness%", @@ -154,6 +155,7 @@ sub handle_i3status { }; } else { + $volume = sprintf("%3d", $volume); splice @$line, -1, 0, { name => 'volume', full_text => "\N{SPEAKER WITH THREE SOUND WAVES} $volume%", -- cgit v1.2.3