{ // "layer": "top", // Waybar at top layer "position": "bottom", // Waybar position (top|bottom|left|right) "height": 20, // Waybar height (to be removed for auto height) "spacing": 2, // Gaps between modules (4px) "modules-left": ["sway/workspaces", "sway/mode", "sway/scratchpad", "custom/media"], "modules-right": ["custom/mail", "custom/pacman", "mpd", "backlight", "pulseaudio", "network", "cpu", "memory", "disk", "temperature", "battery", "clock", "tray"], "keyboard-state": { "numlock": true, "capslock": true, "format": "{name} {icon}", "format-icons": { "locked": "", "unlocked": "" } }, "sway/mode": { "format": "{}" }, "sway/scratchpad": { "format": "{icon} {count}", "show-empty": false, "format-icons": ["", ""], "tooltip": true, "tooltip-format": "{app}: {title}" }, "mpd": { "format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}% ", "format-disconnected": "Disconnected ", "format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ", "unknown-tag": "N/A", "interval": 2, "consume-icons": { "on": " " }, "random-icons": { "off": " ", "on": " " }, "repeat-icons": { "on": " " }, "single-icons": { "on": "1 " }, "state-icons": { "paused": "", "playing": "" }, "tooltip-format": "MPD (connected)", "tooltip-format-disconnected": "MPD (disconnected)" }, "idle_inhibitor": { "format": "{icon}", "format-icons": { "activated": "", "deactivated": "" } }, "tray": { // "icon-size": 21, "spacing": 10 }, "clock": { "timezone": "Europe/Berlin", "tooltip-format": "{:%Y %B}\n{calendar}", "format": "{:%d %h %Y - %R}", }, "cpu": { "format": " {usage}%", "tooltip": false }, "memory": { "format": " {avail}GiB", "tooltip": false }, "disk": { "format": " {free}", }, "temperature": { // "thermal-zone": 2, // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input", "critical-threshold": 80, "format": "{icon} {temperatureC}°C", "format-icons": ["", "", ""], "tooltip": false }, "backlight": { // "device": "acpi_video1", "format": "{icon} {percent}%", "format-icons": ["", "", "", "", "", "", "", "", ""], "tooltip": false }, "battery": { "states": { // "good": 95, "warning": 30, "critical": 15 }, "format": "{icon} {capacity}%", "format-charging": " {capacity}%", "format-plugged": " {capacity}%", "format-alt": "{icon} {time}", "format-good": "", // An empty format will hide the module "format-full": "", "format-icons": [" ", " ", " ", " ", " "], //"exec": "~/.config/waybar/scripts/battery" "interval": 5 }, "network": { // "interface": "wlp2*", // (Optional) To force the use of this interface "format-wifi": " {signalStrength}%", "format-ethernet": " {ipaddr}/{cidr}", "format-linked": " {ifname} (No IP)", "format-disconnected": " ⚠", "on-click": "nm-connection-editor", "tooltip": false }, "pulseaudio": { // "scroll-step": 1, // %, can be a float "format": "{icon} {volume}%", "format-bluetooth": "{volume}% {icon}", "format-bluetooth-muted": " {icon}", "format-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 }, "custom/pacman": { "format": " {}", "interval": 3600, // every hour "exec": "checkupdates | wc -l", // # of updates "exec-if": "exit 0", // always run; consider advanced run conditions "on-click": "alacritty -e sudo pacman -Syu; pkill -SIGRTMIN+8 waybar", // update system "signal": 8, "tooltip": false }, "custom/mail": { "format": " {}", "exec": "find $HOME/.local/share/mail/*/INBOX/new/ -type f | wc -l", "interval": 60, "on-click": "thunderbird" } }