2023-11-22 22:55:38 +01:00
|
|
|
{
|
|
|
|
"modules-left": ["sway/workspaces", "sway/mode"],
|
|
|
|
"modules-center": ["clock"],
|
|
|
|
"modules-right": ["cpu", "memory", "network", "pulseaudio", "battery", "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"
|
|
|
|
},
|
2023-11-26 20:54:40 +01:00
|
|
|
{% if isNotebook %}
|
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":" ",
|
|
|
|
"on-click":"swaynag -t warning -m 'Power Menu Options' -b 'Logout' 'swaymsg exit' -b 'Suspend' 'swaymsg exec sudo systemctl suspend' -b 'Reboot' 'swaymsg exec sudo systemctl reboot' -b 'Shutdown' 'swaymsg exec sudo systemctl poweroff'"
|
|
|
|
}
|
|
|
|
}
|