Nerd font doesn't render \u200a width
Updated font, so just use a regular space instead.
This commit is contained in:
parent
77bf357f50
commit
e0bba8eb86
|
@ -105,22 +105,22 @@ if ($bar) {
|
||||||
$output = '';
|
$output = '';
|
||||||
if ($powref->{AC}->{Status} eq "Plugged-In") {
|
if ($powref->{AC}->{Status} eq "Plugged-In") {
|
||||||
$class = 'charging';
|
$class = 'charging';
|
||||||
$output .= "";
|
$output .= " ";
|
||||||
} elsif ($powref->{Total}->{Percentage} <= 10) {
|
} elsif ($powref->{Total}->{Percentage} <= 10) {
|
||||||
$class = 'critical';
|
$class = 'critical';
|
||||||
$output .= "";
|
$output .= " ";
|
||||||
} elsif ($powref->{Total}->{Percentage} <= 35) {
|
} elsif ($powref->{Total}->{Percentage} <= 35) {
|
||||||
$class = 'low';
|
$class = 'low';
|
||||||
$output .= "";
|
$output .= " ";
|
||||||
} elsif ($powref->{Total}->{Percentage} <= 60) {
|
} elsif ($powref->{Total}->{Percentage} <= 60) {
|
||||||
$output .= "";
|
$output .= " ";
|
||||||
} elsif ($powref->{Total}->{Percentage} <= 85) {
|
} elsif ($powref->{Total}->{Percentage} <= 85) {
|
||||||
$output .= "";
|
$output .= " ";
|
||||||
} else {
|
} else {
|
||||||
$output .= "";
|
$output .= " ";
|
||||||
}
|
}
|
||||||
$output = '{'
|
$output = '{'
|
||||||
. '"text":"' . $output . '\u200a' . $powref->{Total}->{Percentage} . '%",'
|
. '"text":"' . $output . $powref->{Total}->{Percentage} . '%",'
|
||||||
. '"icon":"' . $output . '",'
|
. '"icon":"' . $output . '",'
|
||||||
. '"percentage":"' . $powref->{Total}->{Percentage} . '",'
|
. '"percentage":"' . $powref->{Total}->{Percentage} . '",'
|
||||||
. '"tooltip":"' . $class . '",'
|
. '"tooltip":"' . $class . '",'
|
||||||
|
|
|
@ -39,7 +39,7 @@ if ($cmd eq 'bar') {
|
||||||
my $temp = $ref->{current}->{temp} - 273.15;
|
my $temp = $ref->{current}->{temp} - 273.15;
|
||||||
my $icon = $ref->{current}->{weather}->[0]->{icon};
|
my $icon = $ref->{current}->{weather}->[0]->{icon};
|
||||||
|
|
||||||
printf("<span font='Anonymous Pro 18'>%s</span>%.1f%s", $icons{$icon}, ${temp}, "°C");
|
printf("<span font='Anonymice Nerd Font 18'>%s</span>%.1f%s", $icons{$icon}, ${temp}, "°C");
|
||||||
} elsif ($cmd eq 'notify') {
|
} elsif ($cmd eq 'notify') {
|
||||||
`notify-send weather TODO`;
|
`notify-send weather TODO`;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue