From e0bba8eb86b9d64fae06ca8498a9e7b4cb1fc27e Mon Sep 17 00:00:00 2001 From: John Mertz Date: Mon, 17 Apr 2023 15:38:15 -0400 Subject: [PATCH] Nerd font doesn't render \u200a width Updated font, so just use a regular space instead. --- thinkpad/pow.pl | 14 +++++++------- waybar/waybar-weather.pl | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/thinkpad/pow.pl b/thinkpad/pow.pl index 007c2e9..28e29d9 100755 --- a/thinkpad/pow.pl +++ b/thinkpad/pow.pl @@ -105,22 +105,22 @@ if ($bar) { $output = ''; if ($powref->{AC}->{Status} eq "Plugged-In") { $class = 'charging'; - $output .= ""; + $output .= " "; } elsif ($powref->{Total}->{Percentage} <= 10) { $class = 'critical'; - $output .= ""; + $output .= " "; } elsif ($powref->{Total}->{Percentage} <= 35) { $class = 'low'; - $output .= ""; + $output .= " "; } elsif ($powref->{Total}->{Percentage} <= 60) { - $output .= ""; + $output .= " "; } elsif ($powref->{Total}->{Percentage} <= 85) { - $output .= ""; + $output .= " "; } else { - $output .= ""; + $output .= " "; } $output = '{' - . '"text":"' . $output . '\u200a' . $powref->{Total}->{Percentage} . '%",' + . '"text":"' . $output . $powref->{Total}->{Percentage} . '%",' . '"icon":"' . $output . '",' . '"percentage":"' . $powref->{Total}->{Percentage} . '",' . '"tooltip":"' . $class . '",' diff --git a/waybar/waybar-weather.pl b/waybar/waybar-weather.pl index 9256be4..5c67f86 100755 --- a/waybar/waybar-weather.pl +++ b/waybar/waybar-weather.pl @@ -39,7 +39,7 @@ if ($cmd eq 'bar') { my $temp = $ref->{current}->{temp} - 273.15; my $icon = $ref->{current}->{weather}->[0]->{icon}; - printf("%s%.1f%s", $icons{$icon}, ${temp}, "°C"); + printf("%s%.1f%s", $icons{$icon}, ${temp}, "°C"); } elsif ($cmd eq 'notify') { `notify-send weather TODO`; } else {