mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-12-29 10:09:30 +01:00
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:
parent
ed1368bde6
commit
56740bc22a
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user