feat(ags): modify bar Hyprland clientTitle config

Shortens the line if the original is too long
This commit is contained in:
Zhongheng Liu 2024-09-01 09:19:32 +03:00
commit 8cdaac5bf7
No known key found for this signature in database

View file

@ -41,7 +41,7 @@ const Workspaces = () => Widget.EventBox({
function ClientTitle() { function ClientTitle() {
return Widget.Label({ return Widget.Label({
class_name: "client-title", class_name: "client-title",
label: hyprland.active.client.bind("title"), label: hyprland.active.client.bind("title").as(title => title.length <= 30 ? title : `${title.substring(0, 29)}...`),
}) })
} }
const WifiIndicator = () => Widget.Box({ const WifiIndicator = () => Widget.Box({