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

45 lines
1.6 KiB
Plaintext
Raw Normal View History

2023-11-22 22:55:38 +01:00
{
"modules-left": ["sway/workspaces", "sway/mode"],
"modules-center": ["clock"],
2023-12-03 21:43:28 +01:00
"modules-right": ["cpu", "memory", "network", "pulseaudio", {% if isNotebook | bool %}"battery", {% endif %}"custom/power"],
2023-11-22 22:55:38 +01:00
"sway/workspaces": {
"disable-scroll": true
},
"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"
},
2023-11-26 22:24:59 +01:00
{% if isNotebook | bool %}
2023-11-22 22:55:38 +01:00
"battery": {
"format": "{icon} {capacity}%",
"format-charging": " {capacity}%",
"format-icons": ["", "", "", "", ""]
},
2023-11-26 20:54:40 +01:00
{% endif %}
2023-11-22 22:55:38 +01:00
"custom/power":{
"format":"  ",
2023-12-24 22:47:40 +01:00
"on-click":"swaynag -t warning -m 'Power Menu Options' -b 'Logout' 'swaymsg exit' -b 'Lock' 'swaymsg exec swaylock -f' -b 'Suspend' 'swaymsg exec sudo systemctl suspend && swaylock -f' -b 'Reboot' 'swaymsg exec sudo systemctl reboot' -b 'Shutdown' 'swaymsg exec sudo systemctl poweroff'"
2023-11-22 22:55:38 +01:00
}
}