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

43 lines
1.4 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-10-12 21:39:59 +02:00
"modules-right": ["tray", "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-10-12 21:39:59 +02:00
},
"tray": {
"icon-size": 16,
"spacing": 10
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
}