From 6d2e0b8a3d60b5c36853a842f95ec044d5d51953 Mon Sep 17 00:00:00 2001 From: John Mertz Date: Fri, 23 Sep 2022 18:19:51 -0400 Subject: [PATCH] Add a few icon options (still need a comprehensive list) --- waybar/waybar-weather.pl | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/waybar/waybar-weather.pl b/waybar/waybar-weather.pl index f8593a3..db5a9b4 100755 --- a/waybar/waybar-weather.pl +++ b/waybar/waybar-weather.pl @@ -11,7 +11,16 @@ if (defined($ARGV[0])) { my $url = "https://john.me.tz/weather/weather.json"; my %icons = ( + '01d' => "☀", + '01n' => "☾", + '02d' => "☁", + '02n' => "☁", + '03d' => "☁", + '03n' => "☁", '04d' => "☁", + '04n' => "☁", + '10d' => "🌧", + '10n' => "🌧", ); use LWP::UserAgent; my $ua = LWP::UserAgent->new();