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