mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-08-17 14:51:04 +02:00
feat(sway): support workspace rename events (#799)
And reorder based on label with fallback to widget name
This commit is contained in:
parent
13c2f8fa8b
commit
9f7c3918c4
2 changed files with 23 additions and 1 deletions
|
@ -109,6 +109,16 @@ impl From<WorkspaceEvent> for WorkspaceUpdate {
|
|||
WorkspaceChange::Move => {
|
||||
Self::Move(event.current.expect("Missing current workspace").into())
|
||||
}
|
||||
WorkspaceChange::Rename => {
|
||||
if let Some(node) = event.current {
|
||||
Self::Rename {
|
||||
id: node.id,
|
||||
name: node.name.unwrap_or_default(),
|
||||
}
|
||||
} else {
|
||||
Self::Unknown
|
||||
}
|
||||
}
|
||||
WorkspaceChange::Urgent => {
|
||||
if let Some(node) = event.current {
|
||||
Self::Urgent {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue