// vi: ft=jsonc // normal #ebdbb2 // blue #268bd2 // red #fb4934 // green #b8bb26 { "layer": "top", "height": 25, "modules-left": [ "sway/workspaces", "custom/separator#left" ], "modules-center": [ ], "modules-right": [ "custom/separator#right", "custom/mail", "custom/separator#right", "pulseaudio", "custom/media", "custom/separator#right", "network#wl0", "network#en0", "network#vpn0", "custom/separator#right", "cpu", "memory", "custom/separator#right", "backlight", "custom/separator#right", "battery", "custom/separator#right", "clock", "tray" ], "custom/separator#left": { "format": " " }, "custom/separator#right": { "format": " " }, "custom/mail": { "format": "{icon} {}", "return-type": "json", "min-length": 15, "max-length": 15, "interval": 30, "format-icons": { "unread": " ", "read": " " }, "escape": true, "exec": "$HOME/.config/sway/bin/waybar_mail 2> /dev/null" }, "custom/media": { "format": "{icon} {}", "return-type": "json", "min-length": 30, "max-length": 40, "format-icons": { "chromium": " ", "firefox": " ", "Plexamp": "", "default": " " }, "escape": true, "exec": "$HOME/.config/sway/bin/waybar_mediaplayer.py 2> /dev/null", "exec-if": "pgrep plexamp" }, "clock": { "format": "{:%a, %d %b %H:%M}", "tooltip-format": "{:%Y %B}\n{calendar}" }, "cpu": { "format": " {usage}%", "states": { "warning": 70, "critical": 90 } }, "memory": { "format": " {}%", "states": { "warning": 70, "critical": 90 } }, "backlight": { "format": "{icon} {percent}%", "format-icons": [""] }, "battery": { "bat": "BAT0", "design-capacity": false, "states": { "warning": 30, "critical": 15 }, "format": "{icon} {capacity}%", "format-charging": " {capacity}%", "format-icons": ["", "", "", "", ""] }, "network#wl0": { "interval": 2, "interface": "wl0", "format": "{ifname}", "format-wifi": "{ifname} {essid} ({signalStrength}%)", "format-ethernet": "{ifname}", "format-linked": "{ifname}", "format-disconnected": "{ifname}", "tooltip-format": "{ifname}\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}", "tooltip-format-linked": "{ifname} linked", "tooltip-format-disconnected": "{ifname} disconnected", "on-click": "foot -T float nmtui" }, "network#en0": { "interval": 2, "interface": "en0", "format": "{ifname}", "format-wifi": " {essid} ({signalStrength}%)", "format-ethernet": "{ifname}", "format-linked": "{ifname}", "format-disconnected": "{ifname}", "tooltip-format": "{ifname}\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}", "tooltip-format-linked": "{ifname} linked", "tooltip-format-disconnected": "{ifname} disconnected", "on-click": "foot -T float nmtui" }, "network#vpn0": { "interval": 2, "interface": "vpn0", "format": "{ifname}", "format-wifi": " {essid} ({signalStrength}%)", "format-ethernet": "{ifname}", "format-linked": "{ifname}", "format-disconnected": "{ifname}", "tooltip-format": "{ifname}\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}", "tooltip-format-linked": "{ifname} linked", "tooltip-format-disconnected": "{ifname} disconnected", "on-click": "foot -T float nmtui" }, "pulseaudio": { "format": "{icon} {volume}% {format_source}", "format-bluetooth": "{icon} {volume}% {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": "pkill -x pavucontrol || pavucontrol" }, "tray": { "padding": 10, "spacing": 10 } }