From 5ca34c7c5c0aba8270f34aed473187f7e1e128f1 Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Mon, 31 Oct 2022 14:56:40 +0100 Subject: [PATCH] Make waybar functional for both sway and Hyprland --- home-manager/modules/waybar/default.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/home-manager/modules/waybar/default.nix b/home-manager/modules/waybar/default.nix index 3a8bce8..399764f 100644 --- a/home-manager/modules/waybar/default.nix +++ b/home-manager/modules/waybar/default.nix @@ -29,7 +29,7 @@ in height = 32; modules-left = [ - # "sway/workspaces" + "sway/workspaces" "wlr/workspaces" "sway/mode" "custom/now_playing" @@ -121,6 +121,18 @@ in max-length = 120; }; + "sway/workspaces" = { + all-outputs = false; + disable-scroll = true; + format = "{icon} {name}"; + sort-by-number = true; + format-icons = { + "urgent" = ""; + "focused" = ""; + "default" = ""; + }; + }; + "wlr/workspaces" = { all-outputs = false; # disable-scroll = true;