39 lines
1.2 KiB
Django/Jinja
39 lines
1.2 KiB
Django/Jinja
{
|
|
"modules-left": ["hyprland/workspaces"],
|
|
"modules-center": ["clock"],
|
|
"modules-right": ["cpu", "memory", "network", "pulseaudio", {% if isNotebook | 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'] | bool %}
|
|
"battery": {
|
|
"format": "{icon} {capacity}%",
|
|
"format-charging": " {capacity}%",
|
|
"format-icons": ["", "", "", "", ""]
|
|
}
|
|
{% endif %}
|
|
}
|