74 lines
2 KiB
Plaintext
74 lines
2 KiB
Plaintext
{
|
|
"position": "top",
|
|
"modules-left": ["sway/workspaces", "sway/mode"],
|
|
"modules-center": [],
|
|
"modules-right": ["tray", "custom/spotify", "backlight", "pulseaudio", "network", "battery", "idle_inhibitor", "sway/language", "clock"],
|
|
"sway/mode": {
|
|
"format": " {}"
|
|
},
|
|
"sway/workspaces": {
|
|
"format": "{name}",
|
|
"disable-scroll": true
|
|
},
|
|
"clock": {
|
|
"format": "{:%a %d %b %H:%M}",
|
|
"tooltip": false
|
|
},
|
|
"battery": {
|
|
"format": "{capacity}% {icon}",
|
|
"format-icons": ["", "", "", "", ""],
|
|
"format-charging": "{capacity}% ",
|
|
"interval": 10,
|
|
"states": {
|
|
"warning": 20,
|
|
"critical": 10
|
|
}
|
|
},
|
|
"network": {
|
|
"format": "{icon}",
|
|
"format-disconnected": "",
|
|
"format-icons": {
|
|
"wifi": "",
|
|
"ethernet": "",
|
|
},
|
|
"tooltip-format": "{ifname}: {ipaddr}/{cidr} via {gwaddr}",
|
|
"tooltip-format-wifi": "{ifname}: {ipaddr}/{cidr} via {gwaddr}\nAP: {essid} ({signalStrength}%"
|
|
},
|
|
"pulseaudio": {
|
|
"format": "{volume}% {icon}",
|
|
"format-muted": "",
|
|
"format-icons": {
|
|
"phone": [" ", " ", " ", " "],
|
|
"default": ["", "", ""]
|
|
},
|
|
"scroll-step": 10,
|
|
"on-click": "pavucontrol",
|
|
"tooltip": false
|
|
},
|
|
"custom/spotify": {
|
|
"interval": 1,
|
|
"return-type": "json",
|
|
"exec": "~/.config/waybar/modules/spotify.sh",
|
|
"exec-if": "pgrep spotify",
|
|
"escape": true
|
|
},
|
|
"backlight": {
|
|
"format": "{percent}% {icon}",
|
|
"format-icons": [""]
|
|
},
|
|
"idle_inhibitor": {
|
|
"format": "{icon}",
|
|
"format-icons": {
|
|
"activated": "",
|
|
"deactivated": ""
|
|
},
|
|
"tooltip": false
|
|
},
|
|
"sway/language": {
|
|
"tooltip-format": "{long}"
|
|
},
|
|
"tray": {
|
|
"icon-size": 18
|
|
}
|
|
}
|