From 220eacc9542074d0c171fb35d669d4c42c2bbba9 Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Sun, 5 Jan 2025 23:41:01 -0800 Subject: [PATCH] fix: use correct waybar icons for new binds --- .../desktop-environment/waybar/default.nix | 77 +++++++++++-------- 1 file changed, 46 insertions(+), 31 deletions(-) diff --git a/hm/modules/linux/desktop-environment/waybar/default.nix b/hm/modules/linux/desktop-environment/waybar/default.nix index aac16d5..756b4cf 100644 --- a/hm/modules/linux/desktop-environment/waybar/default.nix +++ b/hm/modules/linux/desktop-environment/waybar/default.nix @@ -251,39 +251,54 @@ in "hyprland/workspaces" = { show-special = true; - # persistent-workspaces = { - # "*" = [ - # 1 - # 2 - # 3 - # 4 - # 5 - # 6 - # 7 - # 8 - # 9 - # 10 - # ]; - # }; format = "{icon}"; on-click = "activate"; - format-icons = { - "1" = ""; - "2" = ""; - "3" = "󰰊"; - "4" = "󰰍"; - "5" = ""; - "6" = ""; - "7" = "󰰨"; - "8" = ""; - "9" = ""; - "10" = ""; - active = ""; - empty = ""; - default = ""; - urgent = ""; - special = "󰠱"; - }; + format-icons = + { + "1" = ""; + "2" = ""; + "3" = "󰯵"; + "4" = "󰯻"; + "5" = "󰯾"; + "6" = "󰰴"; + "7" = "󰰨"; + "8" = "󰰄"; + "9" = ""; + "10" = ""; + active = ""; + empty = ""; + default = ""; + urgent = ""; + special = "󰠱"; + } + // ( + if (config.liminalOS.desktop.hyprland.useAdvancedBindings) then + { + "1" = ""; + "2" = ""; + "3" = "󰯵"; + "4" = "󰯻"; + "5" = "󰯾"; + "6" = "󰰴"; + "7" = "󰰨"; + "8" = ""; + "9" = ""; + "10" = ""; + } + else + { + "1" = ""; + "2" = ""; + "3" = "󰰊"; + "4" = "󰰍"; + "5" = ""; + "6" = ""; + "7" = "󰰨"; + "8" = ""; + "9" = ""; + "10" = ""; + } + ); sort-by-number = true; };