From 5de7d9eac70506027d1084bb6af3b4a6fcb1eed0 Mon Sep 17 00:00:00 2001 From: Andrew Date: Sat, 30 Aug 2025 14:31:44 -0400 Subject: change waybar to match new workspace config --- waybar.nix | 54 ++++++++++++++++++++++++------------------------------ 1 file changed, 24 insertions(+), 30 deletions(-) (limited to 'waybar.nix') diff --git a/waybar.nix b/waybar.nix index 07d42fd..1a44cfc 100644 --- a/waybar.nix +++ b/waybar.nix @@ -1,11 +1,27 @@ -{ config, pkgs, ... }: { + config, + pkgs, + ... +}: let + icons = { + "1" = ""; + "2" = ""; + "3" = ""; + "4" = ""; + "5" = "󰊴"; + "6" = ""; + "7" = "7"; + "8" = "8"; + "9" = "9"; + "0" = "0"; + }; +in { programs.waybar = { enable = true; settings = [ { - output = [ "DP-3" ]; + output = ["DP-3"]; #height = 24; # Waybar height spacing = 4; # Gaps between modules fixed-center = true; @@ -31,18 +47,7 @@ enable-bar-scroll = true; disable-scroll-wraparound = true; format = "{icon}"; - format-icons = { - "1" = ""; - "2" = ""; - "3" = ""; - "4" = ""; - "5" = "󰊴"; - "6" = ""; - "7" = "7"; - "8" = ""; - "9" = "󰠮"; - "10" = "10"; - }; + format-icons = icons; }; "hyprland/window" = { @@ -59,7 +64,7 @@ "title" "artist" ]; - ignored-players = [ "brave" ]; + ignored-players = ["brave"]; status-icons = { playing = "▶"; paused = "⏸"; @@ -122,7 +127,7 @@ # Bar for DP-2 only { - output = [ "DP-2" ]; + output = ["DP-2"]; #height = 24; spacing = 4; @@ -131,26 +136,15 @@ "hyprland/window" ]; - modules-center = [ ]; - modules-right = [ "clock" ]; + modules-center = []; + modules-right = ["clock"]; "hyprland/workspaces" = { all-outputs = true; warp-on-scroll = true; enable-bar-scroll = true; format = "{icon}"; - format-icons = { - "1" = ""; - "2" = ""; - "3" = ""; - "4" = ""; - "5" = "󰊴"; - "6" = ""; - "7" = "7"; - "8" = ""; - "9" = "󰠮"; - "10" = "10"; - }; + format-icons = icons; }; "hyprland/window" = { -- cgit v1.3.1