waybar: Add icons mode

This makes it possible to switch between showing application icons on
waybar and showing workspaces on waybar.
This commit is contained in:
Donovan Glover 2023-06-28 12:25:53 -04:00
parent ed1368bde6
commit 56740bc22a
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -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 = {