diff options
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…"; + }; + }; }; } |