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

39 lines
1.3 KiB
Plaintext
Raw Normal View History

2023-11-22 22:55:38 +01:00
{
2024-02-25 20:30:31 +01:00
"modules-left": ["hyprland/workspaces"],
2023-11-22 22:55:38 +01:00
"modules-center": ["clock"],
2024-05-27 23:37:19 +02:00
"modules-right": ["cpu", "memory", "network", "pulseaudio", {% if (hostvars[ansible_hostname]['mobile_platform'] | default('false')) | bool %}"battery", {% endif %}"custom/power"],
2024-02-25 20:30:31 +01:00
"hyprland/workspaces": {},
2023-11-22 22:55:38 +01:00
"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"
2024-05-27 23:37:19 +02:00
{% if (hostvars[ansible_hostname]['mobile_platform'] | default('false')) | bool %}
2023-11-22 22:55:38 +01:00
},
"battery": {
"format": "{icon} {capacity}%",
"format-charging": " {capacity}%",
"format-icons": ["", "", "", "", ""]
{% endif %}
2024-05-27 23:37:19 +02:00
}
2023-11-22 22:55:38 +01:00
}