{ "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" ], "modules-right": [ // "custom/power-consumption", "custom/power-profile", "custom/dpi", "custom/theme", "pulseaudio", "network", "battery" ], "custom/theme": { "exec": "~/.config/waybar/scripts/toggle-theme", "on-click": "~/.config/waybar/scripts/toggle-theme --toggle", "restart-interval": 2 }, "custom/power-consumption": { "exec": "~/.config/waybar/scripts/power-consumption", "interval": 1 }, "wlr/workspaces": { "format": "{icon} {name}", "on-click": "activate", "format-icons": { "1": "", "2": "", "3": "", "4": "", "5": "", "urgent": "", // "active": "", "default": "" } }, "custom/power-profile": { "exec": "~/.config/waybar/scripts/power-profile", "on-click": "~/.config/waybar/scripts/power-profile --toggle", "interval": 2 }, "custom/dpi": { "exec": "~/.config/waybar/scripts/toggle-hdpi", "on-click": "~/.config/waybar/scripts/toggle-hdpi --toggle", "restart-interval": 2 }, "clock": { "interval": 60, "format": "{:%H:%M}", "on-click": "gnome-calendar", "max-length": 25 }, "battery": { "states": { "warning": 30, "critical": 15 }, "format": "{capacity}% {icon}", "format-charging": "{capacity}% ", "format-plugged": "{capacity}% ", "format-alt": "{time} {icon}", "format-icons": [ "", "", "", "", "" ] }, "sway/workspaces": { "format": "{name}" }, "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": "⚠", "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 } } // vi: ft=jsonc