{ // "layer": "top", // Waybar at top layer // "position": "bottom", // Waybar position (top|bottom|left|right) "height": 35, // Waybar height (to be removed for auto height) // "width": 1280, // Waybar width "spacing": 8, // Gaps between modules (4px) // Choose the order of the modules "modules-left": ["custom/icon","sway/workspaces", "sway/mode", "sway/window"], "modules-right": ["custom/spotify", "pulseaudio", "cpu", "memory","network", "clock", "tray"], // Modules configuration "sway/mode": { "format": "{}" }, "custom/icon": { "format": "" }, "idle_inhibitor": { "format": "{icon}", "format-icons": { "activated": "", "deactivated": "" } }, "tray": { // "icon-size": 21, "spacing": 10 }, "clock": { "timezone": "America/Los_Angeles", "tooltip-format": "{:%Y %B}\n{calendar}", "format-alt": "{:%Y-%m-%d}" }, "cpu": { "format": "{usage}% ", "tooltip": false }, "memory": { "format": "{}% " }, "network": { "format-wifi": "{essid} ({signalStrength}%) ", "format-ethernet": "{ipaddr}/{cidr} ", "tooltip-format": "{ifname} via {gwaddr} ", "format-linked": "{ifname} (No IP) ", "format-disconnected": "Disconnected ⚠", "format-alt": "{ifname}: {ipaddr}/{cidr}" }, "pulseaudio": { "format": "{volume}% {icon} {format_source}", "format-bluetooth": "{volume}% {icon} {format_source}", "format-bluetooth-muted": " {icon} {format_source}", "format-muted": " {format_source}", "format-source": "{volume}% ", "format-source-muted": "", "format-icons": { "headphone": "", "hands-free": "", "headset": "", "phone": "", "portable": "", "car": "", "default": ["", "", ""] }, "on-click": "pavucontrol" }, "sway/workspaces": { "all-outputs": true }, "custom/spotify": { "format": " {icon}{}", "escape": true, "return-type": "json", "format-icons": { "Playing": " ", "Paused": " " }, "max-length": 40, // "interval": 30, "on-click": "playerctl play-pause", "on-click-right": "kitty spotify_player", //"exec": "zscroll --delay 0.2 --match-command \"spt playback\" --update-check true \"spt playback\" &", "exec": "playerctl -a metadata --format '{\"text\": \"{{markup_escape(title)}} - {{artist}}\", \"tooltip\": \"{{markup_escape(title)}} - {{artist}}\", \"alt\": \"{{status}}\", \"class\": \"{{status}}\"}' -F", "exec-if": "pgrep spotify" } }