From da7ae88e3bb8eec918dbc18617e2c7795183f1f1 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Sat, 10 Aug 2024 16:37:12 -0400 Subject: [PATCH] waybar: move to bottom and rearrange widgets --- .../services/waybar/default.nix | 22 ++++++++++++------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/homeManagerModules/services/waybar/default.nix b/homeManagerModules/services/waybar/default.nix index c258d592..b837ebf0 100644 --- a/homeManagerModules/services/waybar/default.nix +++ b/homeManagerModules/services/waybar/default.nix @@ -15,19 +15,25 @@ in { height = 32; layer = "top"; output = ["*"]; - position = "top"; + position = "bottom"; modules-left = - lib.optionals (cfg.desktop.hyprland.enable) - ["hyprland/workspaces" "hyprland/submap"] + lib.optionals (cfg.desktop.hyprland.tabletMode.enable) + ["group/tablet"] + ++ lib.optionals (cfg.desktop.hyprland.enable) + ["hyprland/submap"] ++ lib.optionals (cfg.desktop.sway.enable) - ["sway/workspaces" "sway/scratchpad" "sway/mode"] - ++ lib.optionals (cfg.desktop.hyprland.tabletMode.enable) - ["group/tablet"]; + ["sway/scratchpad" "sway/mode"]; + + modules-center = + lib.optionals (cfg.desktop.hyprland.enable) + ["hyprland/workspaces"] + ++ lib.optionals (cfg.desktop.sway.enable) + ["sway/workspaces"]; - modules-center = ["clock"]; modules-right = [ "tray" "group/hardware" + "clock" "group/session" ]; @@ -275,7 +281,7 @@ in { margin: 0px 0px; padding: 0px 5px; } - + #workspaces button.active, #workspaces button.focused { color: ${cfg.theme.colors.secondary};