{ // "layer": "top", // Waybar at top layer // "position": "bottom", // Waybar position (top|bottom|left|right) "height": 38, // 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", "battery", "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": "", "default": [ "", "", "" ] }, "on-click": "pavucontrol" }, "sway/workspaces": { "all-outputs": true }, "battery": { "interval": 30, "states": { "warning": 30, "critical": 15 }, "format": "{capacity}% {icon}", "format-charging": "{capacity}% {icon} ", "format-icons": [ "", "", "", "", "" ], "max-length": 25 }, "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 spt", "exec": "playerctl -a metadata --format '{\"text\": \"{{markup_escape(title)}} - {{artist}}\", \"tooltip\": \"{{markup_escape(title)}} - {{artist}}\", \"alt\": \"{{status}}\", \"class\": \"{{status}}\"}' -F" } }