Testing waybar tray.

This commit is contained in:
ediblerope 2026-05-13 12:47:02 +01:00
parent 7abb63698f
commit 93c35015e4

View file

@ -298,7 +298,7 @@
modules-left = [ "hyprland/workspaces" ]; modules-left = [ "hyprland/workspaces" ];
modules-center = [ "clock" ]; modules-center = [ "clock" ];
modules-right = [ "pulseaudio" "network" "tray" "custom/power" ]; modules-right = [ "pulseaudio" "tray" "custom/power" ];
"hyprland/workspaces" = { "hyprland/workspaces" = {
format = "{name}"; format = "{name}";
@ -311,6 +311,7 @@
tooltip-format = "<big>{:%A, %d %B %Y}</big>\n<tt><small>{calendar}</small></tt>"; tooltip-format = "<big>{:%A, %d %B %Y}</big>\n<tt><small>{calendar}</small></tt>";
}; };
# Pulseaudio module, now conditionally visible
pulseaudio = { pulseaudio = {
format = "{icon} {volume}%"; format = "{icon} {volume}%";
format-muted = " muted"; format-muted = " muted";
@ -321,19 +322,14 @@
}; };
on-click = "pavucontrol"; on-click = "pavucontrol";
scroll-step = 5; scroll-step = 5;
exec-if = "test -f /tmp/waybar-tray-drawer-state"; # Only show if drawer is "open"
}; };
network = { # Tray module, now conditionally visible
format-wifi = "󰖩 {essid}";
format-ethernet = "󰈀";
format-disconnected = "󰖪";
tooltip-format = "{ifname}";
on-click = "nm-connection-editor";
};
tray = { tray = {
icon-size = 16; icon-size = 16;
spacing = 8; spacing = 8;
exec-if = "test -f /tmp/waybar-tray-drawer-state"; # Only show if drawer is "open"
}; };
"custom/power" = { "custom/power" = {
@ -396,8 +392,7 @@
} }
#pulseaudio, #pulseaudio,
#network, #tray, # Removed #taskbar as it's not present in this config
#tray,
#custom-power { #custom-power {
padding: 0 10px; padding: 0 10px;
color: @base05; color: @base05;
@ -419,6 +414,11 @@
#tray { #tray {
margin-right: 0; margin-right: 0;
} }
#custom-tray-toggle {
padding: 0 10px;
color: @base05;
}
''; '';
}; };
}; };