Added weather symbols

This commit is contained in:
2025-05-10 20:39:43 -07:00
parent 710399628b
commit ade570b8af
4 changed files with 137 additions and 4 deletions

View File

@@ -29,6 +29,10 @@ struct CommandlineArgs {
/// Show JSON data returned by query
#[arg(short = 'D', long)]
debug_json: bool,
/// Show ICON debug information
#[arg(short = 'I', long)]
debug_icons: bool,
}
//
@@ -58,6 +62,13 @@ impl Unibar {
parts.push(md.get());
}
println!("{}", parts.join(" | "));
if self.opts.debug_icons {
let w = bar_modules::bar_module_weather::UnibarModuleWeather { opts: self.opts.clone() };
w.get_icons();
w.show_icons();
}
}
// --------------------
@@ -87,7 +98,8 @@ fn main() {
else { common::TemperatureUnits::Imperial },
weather_station: cmd_args.weather_station,
music_progress: cmd_args.music_progress,
debug_json: cmd_args.debug_json
debug_json: cmd_args.debug_json,
debug_icons: cmd_args.debug_icons
},
};