{ //"layer": "top", // Waybar at top layer "position": "top", // Waybar position (top|bottom|left|right) "height": 25, // Waybar height (to be removed for auto height) "spacing": 0, // Gaps between modules (4px) // Choose the order of the modules "modules-left": ["sway/workspaces", "sway/mode"], "modules-center": [], "modules-right": ["custom/bluetooth-battery", "custom/left-semi", "battery", "custom/right-semi", "pulseaudio", "custom/left-semi", "cpu", "custom/right-semi", "temperature", "custom/left-semi", "memory", "custom/right-semi", "backlight", "custom/left-semi", "clock", "custom/right-semi", "tray"], "fixed-center": true, "sway/mode": { "format": "{}" }, "tray": { "icon-size": 14, "spacing": 10 }, "clock": { "format": " {:%H:%M}", "tooltip-format": "{:%Y %B}\n{calendar}", "format-alt": "{:%Y-%m-%d}" }, "cpu": { "format": "﬙ {usage}%", "tooltip": false }, "memory": { "format": " {}%" }, "temperature": { "critical-threshold": 80, "format": " {temperatureC}°C", }, "backlight": { "format": "{icon} {percent}%", "format-icons": ["", "", "", "", "", "", "", "", ""] }, "battery": { "states": { // "good": 95, "warning": 50, "critical": 40, }, "format": " {capacity}%", "format-time": "{H}h {M}m", "format-charging": " {capacity}%", "format-plugged": " {capacity}%", "format-alt": "{icon} {time}", "format-icons": ["", "", "", "", ""] }, "custom/left-semi": { "format": "", }, "custom/right-semi": { "format": "", }, "custom/bluetooth-battery": { "format": "{}", "return-type": "json", "interval": 5, "exec": "~/.config/waybar/scripts/bt-bat-waybar-module.sh", "exec-if": "~/.config/waybar/scripts/bt-bat-status.sh >/dev/null 2>&1", "signal": 9 }, "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": { // "scroll-step": 1, // %, can be a float "format": " {volume}%", "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/media": { "format": "{icon} {}", "return-type": "json", "max-length": 40, "format-icons": { "spotify": "", "default": "🎜" }, "escape": true, "exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder // "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name } }