// vim: filetype=json { "layer": "bottom", "height": 30, "modules-left": [ "sway/workspaces", "sway/mode", "custom/waybar-mpris", "pulseaudio" ], "modules-center": [ "clock", "custom/weather" ], "modules-right": [ "custom/rec-status", "custom/swaykbd", "custom/ds4battery", "custom/mail-status", "custom/pac-status", "custom/news-status", "custom/batwatt", "memory", "custom/torrent-status", "network", "backlight", "battery#bat0", "battery#bat1", "tray" ], "sway/mode": { "format": "{}" }, "custom/waybar-mpris": { "return-type": "json", "exec": "waybar-mpris --autofocus --text-format=\"%i [%p] %a - %t\" --tooltip-format=\"%t by %a from %A\n%p/%d\n(%P)\" --pause='' --play='' --max-title 45", "on-click": "lmc toggle", "on-click-right": "lmc next" }, "mpd": { "format": " {stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon} [{elapsedTime:%M:%S}] {artist} - {title}", "format-disconnected": " Connection lost ", "format-stopped": "  {consumeIcon}{randomIcon}{repeatIcon}{singleIcon} [--:--] -- - --", "unknown-tag": "N/A", "interval": 2, "max-length": 60, "consume-icons": { "on": " " }, "random-icons": { "on": "" }, "repeat-icons": { "on": " " }, "single-icons": { "on": "[s]" }, "state-icons": { "paused": "", "playing": "" }, "tooltip-format": "MPD now playing: {artist} - {title}", "tooltip-format-disconnected": "MPD disconnected" }, "idle_inhibitor": { "format": "{icon}", "format-icons": { "activated": "", "deactivated": "" } }, "tray": { "icon-size": 16, "spacing": 10 }, "clock": { "format": "{:%Y-%m-%d %H:%M:%S}", "interval": 1 }, "cpu": { "format": "{usage}% ", "tooltip": false }, "memory": { "format": " {used:0.3f}G", "states": { "warning": 90 }, "interval": 10 }, "temperature": { // "thermal-zone": 2, // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input", "critical-threshold": 80, // "format-critical": "{temperatureC}°C {icon}", "format": "{temperatureC}°C {icon}", "format-icons": ["", "", ""] }, "backlight": { // "device": "acpi_video1", "format": "{icon} {percent}%", "format-icons": ["", ""] }, "battery#bat0": { "bat": "BAT0", "format": "{icon} {capacity}%", "format-charging": " {capacity}%", "format-plugged": " {capacity}%", "format-icons": [ "", "", "", "", "" ] }, "battery#bat1": { "bat": "BAT1", "format": "{icon} {capacity}%", "format-charging": " {capacity}%", "format-plugged": " {capacity}%", "format-icons": [ "", "", "", "", "" ] }, "network": { // "interface": "wlp2*", // (Optional) To force the use of this interface "format-wifi": " {essid}", "format-ethernet": " {ifname}", "format-linked": " {ifname}", "format-disconnected": " Disconnected", "format-alt": "{ifname}: {ipaddr}/{cidr}", "tooltip-format": "{ifname}: {ipaddr}/{cidr}" }, "custom/left-arrow-cyan": { "format": "" }, "custom/right-arrow-cyan": { "format": "" }, "custom/left-arrow-gray": { "format": "" }, "custom/left-arrow-black": { "format": "" }, "custom/right-arrow-black": { "format": "" }, "custom/left-decorator-black": { "format": "" }, "custom/right-decorator-black": { "format": "" }, "pulseaudio": { "scroll-step": 5, // %, can be a float "format": "{icon} {volume}%", "format-bluetooth": "{icon} {volume}% {format_source}", "format-muted": "", "format-source": "{volume}% ", "format-source-muted": "", "format-icons": { "headphone": "", "handsfree": "", "headset": "", "phone": "", "portable": "", "car": "", "default": ["", "", ""] }, "on-click": "$TERMINAL -e ncpamixer" }, "custom/rec-status": { "format": "{}", "signal": 5, "interval": "once", "exec": "barrecstatus" }, "custom/torrent-status": { "format": "{}", "signal": 10, "interval": "once", "exec": "bartorrentstatus" }, "custom/mail-status": { "format": "📧 {}", "signal": 9, "interval": "once", "exec": "barmailstatus", "tooltip": false }, "custom/pac-status": { "format": " {}", "signal": 7, "interval": "once", "exec": "barpacstatus" }, "custom/news-status": { "format": " {}", "signal": 8, "interval": "once", "exec": "barnewsstatus", "tooltip": false }, "custom/weather": { "format": "{}", "interval": 180, "exec": "barweather" }, "custom/ds4battery": { "format": "🎮 {}", "interval": 180, "exec": "bards4battery" }, "custom/batwatt": { "format": " {}", "interval": 10, "exec-if": "test -e /sys/class/power_supply/BAT0", "exec": "echo print\\(\\'{}W\\'.format\\($(grep 'POWER_SUPPLY_POWER_NOW' /sys/class/power_supply/BAT0/uevent | awk -F '=' '{print $2}')/1000000\\)\\) | python", "exec-on-event": true, "on-click": "" }, "custom/swaykbd": { "format": "{}", "exec": "swaykbd", "tooltip": false } }