Add tray to waybar

This commit is contained in:
Oliver Traber 2024-10-12 21:39:59 +02:00
parent 92a6344c32
commit 7c2d7232e5
Signed by: Bluemedia
GPG key ID: C0674B105057136C

View file

@ -1,7 +1,7 @@
{ {
"modules-left": ["hyprland/workspaces"], "modules-left": ["hyprland/workspaces"],
"modules-center": ["clock"], "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": {}, "hyprland/workspaces": {},
"clock": { "clock": {
"format": " {:%H:%M %d.%m.}", "format": " {:%H:%M %d.%m.}",
@ -27,6 +27,10 @@
"format-icons": ["", "", ""], "format-icons": ["", "", ""],
"reverse-scrolling": true, "reverse-scrolling": true,
"on-click": "swaymsg exec amixer -q set Master toggle" "on-click": "swaymsg exec amixer -q set Master toggle"
},
"tray": {
"icon-size": 16,
"spacing": 10
{% if (hostvars[ansible_hostname]['mobile_platform'] | default('false')) | bool %} {% if (hostvars[ansible_hostname]['mobile_platform'] | default('false')) | bool %}
}, },
"battery": { "battery": {