diff options
author | Zhongheng Liu <z.liu@outlook.com.gr> | 2024-09-01 09:19:32 +0300 |
---|---|---|
committer | Zhongheng Liu <z.liu@outlook.com.gr> | 2024-09-01 09:19:32 +0300 |
commit | 8cdaac5bf7e5b325a03c0f6407233a3a8027084c (patch) | |
tree | 5b2ebfcfef9e076b92a013980d4f27caba17525e | |
parent | 7db7922cd352436fe0475c5334c88a1e9a864469 (diff) | |
download | nixos-configuration-8cdaac5bf7e5b325a03c0f6407233a3a8027084c.tar.gz nixos-configuration-8cdaac5bf7e5b325a03c0f6407233a3a8027084c.tar.bz2 nixos-configuration-8cdaac5bf7e5b325a03c0f6407233a3a8027084c.zip |
feat(ags): modify bar Hyprland clientTitle config
Shortens the line if the original is too long
-rw-r--r-- | home-manager/stvnliu/ags/config/config.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/home-manager/stvnliu/ags/config/config.js b/home-manager/stvnliu/ags/config/config.js index a079594..cd36bde 100644 --- a/home-manager/stvnliu/ags/config/config.js +++ b/home-manager/stvnliu/ags/config/config.js @@ -41,7 +41,7 @@ const Workspaces = () => Widget.EventBox({ function ClientTitle() { return Widget.Label({ 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({ |