desktop-config/roles/desktop-environment/templates/.config/waybar/config.j2

39 lines
1.3 KiB
Django/Jinja

{
"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"],
"hyprland/workspaces": {},
"clock": {
"format": " {:%H:%M %d.%m.}",
"timezone": "Europe/Berlin"
},
"cpu": {
"interval": 5,
"format": " {usage}%"
},
"memory": {
"interval": 5,
"format": " {used} GiB/{total} GiB ({percentage}%)"
},
"network": {
"format-ethernet": " {ipaddr}",
"format-wifi": "{icon} {essid}",
"format-disconnected": "",
"format-icons": ["", "", "", "", ""]
},
"pulseaudio": {
"format": "{icon} {volume}%",
"format-muted": " muted",
"format-icons": ["", "", ""],
"reverse-scrolling": true,
"on-click": "swaymsg exec amixer -q set Master toggle"
{% if (hostvars[ansible_hostname]['mobile_platform'] | default('false')) | bool %}
},
"battery": {
"format": "{icon} {capacity}%",
"format-charging": " {capacity}%",
"format-icons": ["", "", "", "", ""]
{% endif %}
}
}