workspace stuff rework

This commit is contained in:
Schrottkatze 2025-09-04 04:20:59 +02:00
commit 0522f35453
No known key found for this signature in database
6 changed files with 100 additions and 32 deletions

View file

@ -89,6 +89,7 @@ fn main() -> Result<(), std::io::Error> {
output,
is_active,
is_focused,
name,
..
}| WsData {
color: output_colors_lut[&output.clone().expect("unreachable")]
@ -96,6 +97,12 @@ fn main() -> Result<(), std::io::Error> {
idx: *idx,
focused: *is_focused,
active: *is_active,
icon: name.as_ref().map(|name| match name.as_str() {
"aaa social" => "󰭹",
"bbb browser" => "󰈹",
"ccc notes" => "󰎚",
&_ => "!",
}),
},
)
.collect::<Vec<_>>();
@ -113,4 +120,5 @@ struct WsData {
idx: u8,
focused: bool,
active: bool,
icon: Option<&'static str>,
}