{ "layer": "top", // Waybar at top layer "height": 25, // Waybar height (to be removed for auto height) "modules-left": ["sway/workspaces"], "modules-center": ["clock"], "modules-right": ["mpd", "network", "pulseaudio", "battery", "battery#bat2"], // Modules configuration // "sway/workspaces": { // "disable-scroll": true, // "all-outputs": true, // "format": "{name}: {icon}", // "format-icons": { // "1": "", // "2": "", // "3": "", // "4": "", // "5": "", // "urgent": "", // "focused": "", // "default": "" // } // }, "sway/mode": { "format": "{}" }, "mpd": { "format": "{stateIcon} {title}", "format-disconnected": "", "format-stopped": "{stateIcon} ", "unknown-tag": "N/A", "interval": 2, "consume-icons": { "on": " " }, "state-icons": { "paused": "", "playing": "" }, "tooltip-format": "MPD (connected)", "tooltip-format-disconnected": "MPD (disconnected)" }, "idle_inhibitor": { "format": "{icon}", "format-icons": { "activated": "", "deactivated": "" } }, "tray": { // "icon-size": 21, "spacing": 10 }, "clock": { "format": "{:%a %d %b %H:%M}", "format-alt": "{:%Y-%m-%d}" }, "battery": { "bat": "BAT0", "states": { "good": 95, "warning": 60, "critical": 20 }, "format": "{icon} {capacity}%", "format-charging": " {capacity}%", "format-plugged": " {capacity}%", "format-alt": "{time} {icon}", // "format-good": "", // An empty format will hide the module "format-full": " 100%", "format-icons": ["", "", ""] }, "battery#bat2": { "bat": "BAT1", "states": { "good": 95, "warning": 60, "critical": 20 }, "format": "{icon} {capacity}%", "format-charging": " {capacity}%", "format-plugged": " {capacity}%", "format-alt": "{time} {icon}", // "format-good": "", // An empty format will hide the module "format-full": " 100%", "format-icons": ["", "", ""] }, "network": { // "interface": "wlp2*", // (Optional) To force the use of this interface "format-wifi": "{icon} {essid}", "format-ethernet": " Connected", "format-linked": "{ifname} (No IP) ", "format-disconnected": " Disconnected", "format-alt": "{ifname}: {ipaddr}/{cidr}", "format-icons": ["直", "直", "直"], "tooltip-format": "Online", "tooltip-format-disconnected": "Offline" }, "pulseaudio": { // "scroll-step": 1, // %, can be a float "format": "{icon} {volume}%", "format-muted": "", "format-icons": { "default": ["", "墳", ""] }, "on-click": "" }, "custom/media": { "format": "{icon} {}", "return-type": "json", "max-length": 40, "format-icons": { "spotify": "", "default": "🎜" }, "escape": true, "exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder // "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name } }