{ "height": 20, "spacing": 4, "bar_id": "bar-0", "ipc": true, "mode": "hide", "hidden_state": "show", "modules-left": [ "clock", "custom/waybar-mpris" ], "modules-center": [ "sway/workspaces", "sway/mode" ], "modules-right": [ "custom/dpi", "custom/theme", "pulseaudio", "network", "battery" ], "sway/workspaces": { "disable-scroll": true, "all-outputs": false, "format": "{name}" }, "custom/theme": { "exec": "~/.config/waybar/scripts/toggle-theme", "on-click": "~/.config/waybar/scripts/toggle-theme --toggle", "restart-interval": 1 }, "custom/dpi": { "exec": "~/.config/waybar/scripts/toggle-hdpi", "on-click": "~/.config/waybar/scripts/toggle-hdpi --toggle", "restart-interval": 1 }, "sway/mode": { "format": "{}" }, "clock": { "interval": 60, "format": "{:%H:%M}", "max-length": 25 }, "battery": { "states": { "warning": 30, "critical": 15 }, "format": "{capacity}% {icon}", "format-charging": "{capacity}% ", "format-plugged": "{capacity}% ", "format-alt": "{time} {icon}", "format-icons": [ "", "", "", "", "" ] }, "network": { // "interface": "wlp2*", // (Optional) To force the use of this interface "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" }, "custom/waybar-mpris": { "max-length": 30, "return-type": "json", "exec": "waybar-mpris --position --autofocus", "on-click": "waybar-mpris --send toggle", // This option will switch between players on right click. "on-click-right": "waybar-mpris --send player-next", // The options below will switch the selected player on scroll // "on-scroll-up": "waybar-mpris --send player-next", // "on-scroll-down": "waybar-mpris --send player-prev", // The options below will go to next/previous track on scroll // "on-scroll-up": "waybar-mpris --send next", // "on-scroll-down": "waybar-mpris --send prev", "escape": true } }