From 56740bc22acefb13aa3346afe55a0dc23fdc9896 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Wed, 28 Jun 2023 12:25:53 -0400 Subject: [PATCH] waybar: Add icons mode This makes it possible to switch between showing application icons on waybar and showing workspaces on waybar. --- home/waybar.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home/waybar.nix b/home/waybar.nix index 3f151dd..6b9758b 100644 --- a/home/waybar.nix +++ b/home/waybar.nix @@ -2,6 +2,7 @@ let opacity = lib.strings.floatToString config.stylix.opacity.terminal; + icons = true; position = "top"; opposite = builtins.replaceStrings ["left" "right" "top" "bottom"] ["right" "left" "bottom" "top"] position; isVertical = position == "left" || position == "right"; @@ -18,8 +19,7 @@ in height = if isVertical then null else 45; spacing = 8; - modules-left = [ "wlr/workspaces" "custom/new-workspace" ]; - modules-center = [ "wlr/taskbar" ]; + modules-left = if icons then [ "wlr/taskbar" ] else [ "wlr/workspaces" "custom/new-workspace" ]; modules-right = [ "tray" "wireplumber" "backlight" "battery" "clock" ]; tray = {