Added weather symbols
This commit is contained in:
14
src/main.rs
14
src/main.rs
@@ -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
|
||||
},
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user