forked from Shinonome/dots-hyprland
Fix title on workspace change
This commit is contained in:
@@ -29,9 +29,14 @@ const WindowTitle = async () => {
|
|||||||
truncate: 'end',
|
truncate: 'end',
|
||||||
maxWidthChars: 1, // Doesn't matter, just needs to be non negative
|
maxWidthChars: 1, // Doesn't matter, just needs to be non negative
|
||||||
className: 'txt-smallie bar-wintitle-txt',
|
className: 'txt-smallie bar-wintitle-txt',
|
||||||
setup: (self) => self.hook(Hyprland.active.client, label => { // Hyprland.active.client
|
setup: (self) => {
|
||||||
label.label = Hyprland.active.client.title.length === 0 ? `Workspace ${Hyprland.active.workspace.id}` : Hyprland.active.client.title;
|
self.hook(Hyprland.active.client, label => { // Hyprland.active.client
|
||||||
}),
|
label.label = Hyprland.active.client.title.length === 0 ? `Workspace ${Hyprland.active.workspace.id}` : Hyprland.active.client.title;
|
||||||
|
});
|
||||||
|
self.hook(Hyprland.active.workspace, label => { // Hyprland.active.client
|
||||||
|
label.label = Hyprland.active.client.title.length === 0 ? `Workspace ${Hyprland.active.workspace.id}` : Hyprland.active.client.title;
|
||||||
|
});
|
||||||
|
}
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user