From 7c2d7232e5b5c0e730339fc2fa7fa653722dc62d Mon Sep 17 00:00:00 2001 From: BluemediaGER Date: Sat, 12 Oct 2024 21:39:59 +0200 Subject: [PATCH] Add tray to waybar --- .../desktop-environment/templates/.config/waybar/config.j2 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/roles/desktop-environment/templates/.config/waybar/config.j2 b/roles/desktop-environment/templates/.config/waybar/config.j2 index 8d2b71a..3b483a1 100644 --- a/roles/desktop-environment/templates/.config/waybar/config.j2 +++ b/roles/desktop-environment/templates/.config/waybar/config.j2 @@ -1,7 +1,7 @@ { "modules-left": ["hyprland/workspaces"], "modules-center": ["clock"], - "modules-right": ["cpu", "memory", "network", "pulseaudio", {% if (hostvars[ansible_hostname]['mobile_platform'] | default('false')) | bool %}"battery", {% endif %}"custom/power"], + "modules-right": ["tray", "cpu", "memory", "network", "pulseaudio", {% if (hostvars[ansible_hostname]['mobile_platform'] | default('false')) | bool %}"battery", {% endif %}"custom/power"], "hyprland/workspaces": {}, "clock": { "format": " {:%H:%M %d.%m.}", @@ -27,6 +27,10 @@ "format-icons": ["", "", ""], "reverse-scrolling": true, "on-click": "swaymsg exec amixer -q set Master toggle" + }, + "tray": { + "icon-size": 16, + "spacing": 10 {% if (hostvars[ansible_hostname]['mobile_platform'] | default('false')) | bool %} }, "battery": {