mirror of
https://forge.katzen.cafe/schrottkatze/nix-configs.git
synced 2025-09-05 19:21:38 +02:00
workspace stuff rework
This commit is contained in:
parent
05fdb8a9cb
commit
0522f35453
6 changed files with 100 additions and 32 deletions
|
@ -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>,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue