diff options
author | Vincent Ambo <mail@tazj.in> | 2024-09-29T11·35+0300 |
---|---|---|
committer | tazjin <mail@tazj.in> | 2024-09-29T15·14+0000 |
commit | 70a0fc0297bce0953838548e0c7590cdda1ef761 (patch) | |
tree | 4b73ac38dab42636ffab27e2a70955abe2ed4e39 /users/tazjin/dotfiles/waybar/config.nix | |
parent | 89bd07ee72bd830068e786077f25911c629bcd20 (diff) |
feat(tazjin/dotfiles): configure wlr/taskbar for waybar r/8733
I think that's the last module I was missing for this to be "feature-complete". I think ideally the things displayed by the taskbar would have the same order as the current Niri layout, but I can tackle this later. This might require a patch in Niri. Change-Id: I67cc2366b6c510830021954372e29ce0be7d8363 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12543 Reviewed-by: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
Diffstat (limited to 'users/tazjin/dotfiles/waybar/config.nix')
-rw-r--r-- | users/tazjin/dotfiles/waybar/config.nix | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/users/tazjin/dotfiles/waybar/config.nix b/users/tazjin/dotfiles/waybar/config.nix index aeac4f4c1963..ba5281f02e07 100644 --- a/users/tazjin/dotfiles/waybar/config.nix +++ b/users/tazjin/dotfiles/waybar/config.nix @@ -7,7 +7,7 @@ in mainBar = { layer = "top"; position = "bottom"; - modules-left = [ "custom/start" ]; + modules-left = [ "custom/start" "wlr/taskbar" ]; "custom/start" = { format = " Start"; @@ -51,5 +51,14 @@ in icon-size = 20; spacing = 10; }; + + "wlr/taskbar" = { + format = "{icon} {title}"; + on-click = "activate"; + rewrite = { + # Truncate any format over 16 characters. + "^(.{16}).+$" = "$1…"; + }; + }; }; } |