{ "layer": "top", // Waybar at top layer // "position": "bottom", // Waybar position (top|bottom|left|right) "height": 24, // Waybar height (to be removed for auto height) // Choose the order of the modules "modules-left": ["sway/workspaces", "sway/mode"], "modules-center": [], "modules-right": ["clock", "network", "cpu", "memory", "battery", "backlight", "pulseaudio", "custom/vpn", "idle_inhibitor", "tray"], // Modules configuration "sway/workspaces": { "disable-scroll": true, "all-outputs": true, "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 }, "format": " {icon} {capacity}%", // "format-good": "", // An empty format will hide the module // "format-full": "", "format-icons": ["", "", "", "", ""] }, "network": { "format-wifi": " <{essid}> {ipaddr}/{cidr}", "format-ethernet": " {ipaddr}/{cidr}", "format-disconnected": "⚠ Disconnected" }, "pulseaudio": { //"scroll-step": 1, "format": "{icon} {volume}%", "format-bluetooth": "{icon} {volume}%", "format-muted": "", "format-icons": { "headphones": "", "headset": "", "default": ["", "", ""] }, "on-click": "pavucontrol" }, "custom/vpn": { "format": "{}", "interval": 5, "exec": "test -e /proc/sys/net/ipv4/conf/tun0 && echo  || echo " } }