// vim: filetype=json { "layer": "top", "height": 32, "modules-left": [ "sway/workspaces", "niri/workspaces", "sway/mode", "custom/waybar-mpris", "pulseaudio" ], "modules-center": [ "clock", "custom/weather" ], "modules-right": [ "custom/rec-status", "custom/swaykbd", "custom/mail-status", "memory", "backlight", "battery#bat0", "battery#bat1", "custom/batwatt", "network", "niri/language", "custom/torrent-status", "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 30", "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}", "tooltip-format": "{calendar}", "calendar": { "mode": "year", "mode-mon-col": 3 }, "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}" }, "pulseaudio": { "scroll-step": 2, // %, 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": { "return-type": "json", "interval": 10, "exec-if": "test -e /sys/class/power_supply/BAT0", "exec": "barbatwatt", "exec-on-event": true, "on-click": "" }, "custom/swaykbd": { "format": "{}", "exec": "swaykbd", "tooltip": false }, "niri/language": { "on-click": "niri msg action switch-layout next", "on-click-right": "niri msg action switch-layout prev", "format-en": " 🇺🇸 EN ", "format-es": " 🇲🇽 ES ", "format-ru": " 🇷🇺 RU " } }