{ "layer": "top", "position": "bottom", "spacing": 5, "modules-left": ["sway/workspaces", "sway/mode", "sway/window"], "modules-center": ["clock"], "modules-right": ["mpris", "idle_inhibitor", "battery", "tray"], "sway/workspaces": { "format": "{name}: {icon}", "format-icons": { "urgent": "", "focused": "", "default": "" }, "sort-by-number": true, "spacing": 2, "disable-scroll": true }, "sway/window": { "max-length": 40 }, "sway/mode": { "tooltip": false }, "mpris": { "format": "{status_icon} {dynamic}", "format-paused": "{status_icon} {dynamic}", "status-icons": { "playing": "▶", "paused": "⏸" } }, "battery": { "bat": "BAT0", "states": { "warning": 30, "critical": 15 }, "format": "{capacity}% {icon}", "format-charging": "{capacity}% ", "format-plugged": "{capacity}% ", "format-alt": "{time} {icon}", "format-icons": ["", "", "", "", ""] }, "clock": { "timezone": "Europe/Zurich", "tooltip-format": "{:%Y %B}\n{calendar}", "format": "{:%H:%M | %Y-%m-%d}" }, "idle_inhibitor": { "format": "{icon}", "format-icons": { "activated": " ", "deactivated": " " } }, "tray": { "icon-size": 16 }, "custom/mpris": { "exec": "~/.scripts/polybar/player-mpris-tail.py -f '{icon} {:artist:t10:{artist}:}{:artist: - :}{:t25:{title}:}'", "on-click": "~/.scripts/polybar/player-mpris-tail.py play-pause &", "on-click-middle": "~/.scripts/polybar/player-mpris-tail.py next &", "on-click-right": "~/.scripts/polybar/player-mpris-tail.py previous &" } }