diff options
author | Jesse Luehrs <doy@tozt.net> | 2021-03-03 21:17:59 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2021-03-03 21:17:59 -0500 |
commit | ed372bf8cb42e7d363c0d5a06808666d61713e87 (patch) | |
tree | 6c017a754489a82a8a1a2533fa9db050c41e9496 | |
parent | 365dd1769ecfaf410b18f180e35512b5701f39f7 (diff) | |
download | conf-ed372bf8cb42e7d363c0d5a06808666d61713e87.tar.gz conf-ed372bf8cb42e7d363c0d5a06808666d61713e87.zip |
make the volume and brightness not shift the status bar around
-rwxr-xr-x | bin/hornet/status | 2 |
1 files changed, 2 insertions, 0 deletions
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%", |