{ "layer": "top", // Waybar at top layer // "position": "bottom", // Waybar position (top|bottom|left|right) "height": 23, // Waybar height (to be removed for auto height) // Choose the order of the modules "modules-left": ["sway/workspaces", "sway/mode"], "modules-center": [], "modules-right": ["custom/spotify", "clock", "network", "cpu", "memory", "battery", "backlight", "pulseaudio", "custom/vpn", "idle_inhibitor", "tray"], // Modules configuration "sway/workspaces": { "disable-scroll": true, "all-outputs": false, "format": "{name}" }, "sway/mode": { "format": "{}" }, "idle_inhibitor": { "format": "{icon}", "format-icons": { "activated": "", "deactivated": "" } }, "tray": { // "icon-size": 21, "spacing": 10 }, "clock": { "format": " {:%Y-%m-%d %H:%M}" }, "cpu": { "format": " {usage}%", "tooltip": false }, "memory": { "format": " {}%" }, "backlight": { "format": "{icon} {percent}%", "format-icons": ["", "", ""] }, "battery": { "states": { // "good": 95, "warning": 30, "critical": 15 }, "bat": "BAT0", "format": " {icon} {capacity}%", // "format-good": "", // An empty format will hide the module // "format-full": "", "format-icons": ["", "", "", "", ""] }, "network": { "format-wifi": " {ipaddr}/{cidr}", "format-ethernet": " {ipaddr}/{cidr}", "format-disconnected": "⚠ Disconnected", "tooltip-format": "up: {bandwidthUpBits}b/s, down: {bandwidthDownBits}b/s", "tooltip-format-wifi": "{essid} -  {bandwidthUpBits}  {bandwidthDownBits}" }, "pulseaudio": { //"scroll-step": 1, "format": "{icon} {volume}%", "format-bluetooth": "{icon} {volume}%", "format-muted": " --%", "format-icons": { "headphones": "", "headset": "", "default": ["", "", ""] }, "on-click-right": "pavucontrol" }, "custom/vpn": { "format": "{}", "interval": 5, "exec": "test -e /proc/sys/net/ipv4/conf/tun0 && echo  || echo " }, "custom/spotify": { "format": " {}", "interval": 5, "max-length": 50, "exec": "playerctl metadata -f '({{duration(position)}}/{{duration(mpris:length)}}) {{status}}: {{title}}\n{{artist}} - {{title}}'", "exec-if": "pgrep spotify", "on-scroll-up": "playerctl volume 0.05+", "on-scroll-down": "playerctl volume 0.05-", "on-click": "playerctl play-pause", "on-click-right": "pgrep spotify$ || spotify" } }