// vi: ft=jsonc // normal #ebdbb2 // blue #268bd2 // red #fb4934 // green #b8bb26 { "layer": "top", "height": 26, "modules-left": [ "sway/workspaces", "custom/separator#left", "custom/separator#space" ], "modules-center": [ "custom/separator#right", "clock", "custom/separator#center", "custom/media", "custom/separator#center", "pulseaudio", "custom/separator#left" ], "modules-right": [ "custom/separator#right", "network#ub0", "network#wl0", "custom/separator#center", "cpu", "custom/separator#center", "memory", "custom/separator#center", "temperature", "custom/separator#space", "custom/separator#center", "battery", "custom/separator#center", "custom/separator#space", "tray" ], "custom/separator#left": { "format": "" }, "custom/separator#space": { "format": " " }, "custom/separator#center": { "format": "|" }, "custom/separator#right": { "format": "" }, "custom/calendar": { "format": "{icon} {}", "tooltip-format": "{}", "tooltip": true, "return-type": "json", "min-length": 25, "max-length": 40, "interval": 300, "format-icons": { "now": "", "today": "", "idle": "" }, "escape": false, "exec": "$HOME/.config/sway/bin/waybar_khal.py 2> /dev/null", "on-click": "foot -T float khal interactive" }, "custom/media": { "format": "{icon} {}", "tooltip-format": "{}", "tooltip": true, "return-type": "json", "min-length": 10, "max-length": 30, "format-icons": { "chromium": " ", "firefox": " ", "Plexamp": "♫ ", "default": "♪ " }, "escape": true, "exec": "$HOME/.config/sway/bin/waybar_mediaplayer.py 2> /dev/null" }, "clock": { "format": "{: %H:%M, %b %d }", "format-alt": "{:%A, %B %d, %Y (%R)}", "tooltip-format": "\n{calendar}", // "calendar": { // "mode" : "year", // "mode-mon-col" : 3, // "weeks-pos" : "right", // "on-scroll" : 1, // "on-click-right": "mode", // "format": { // "months": "{}", // "days": "{}", // "weeks": "W{}", // "weekdays": "{}", // "today": "{}" // } // }, "actions": { "on-click-right": "mode", "on-click-forward": "tz_up", "on-click-backward": "tz_down", "on-scroll-up": "shift_up", "on-scroll-down": "shift_down" } }, "cpu": { "format": "{usage:3}%", "min-length": 6, "max-length": 10, "states": { "warning": 70, "critical": 90 }, "on-click": "foot -T float bashtop" }, "memory": { "format": "{}%", "min-length": 6, "max-length": 10, "states": { "warning": 70, "critical": 90 }, "on-click": "foot -T float bashtop" }, "battery": { "bat": "BAT0", "design-capacity": false, "states": { "warning": 30, "critical": 15 }, "format": "{icon}{capacity:3}%", "format-charging": "{capacity:3}%", "format-icons": ["", "", "", "", ""] }, "temperature": { "thermal-zone": 2, "critical-threshold": 60, "format-icons": ["", ""], "format": "{icon}{temperatureC:3}°C" }, "network#en0": { "interval": 2, "interface": "en0", "format": "{ifname}", "format-wifi": "{ifname}", "format-linked": "{ifname}", "format-disconnected": "{ifname}", "min-length": 8, "max-length": 30, "tooltip-format": "{ifname}\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}", "tooltip-format-ethernet": "{ifname}\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}", "tooltip-format-wifi": "{ifname} {essid} ({signalStrength:3}%)\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}", "tooltip-format-disconnected": "{ifname} disconnected", "on-click": "foot -T float nmtui" }, "network#ub0": { "interval": 2, "interface": "ub0", "format": "{ifname}", "format-wifi": "{ifname}", "format-linked": "{ifname}", "format-disconnected": "{ifname}", "min-length": 8, "max-length": 30, "tooltip-format": "{ifname}\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}", "tooltip-format-ethernet": "{ifname}\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}", "tooltip-format-wifi": "{ifname} {essid} ({signalStrength:3}%)\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}", "tooltip-format-disconnected": "{ifname} disconnected", "on-click": "foot -T float nmtui" }, "network#wl0": { "interval": 2, "interface": "wl0", "format": "{ifname}", "format-wifi": "{ifname}", "format-linked": "{ifname}", "format-disconnected": "{ifname}", "min-length": 8, "max-length": 30, "tooltip-format": "{ifname}\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}", "tooltip-format-ethernet": "{ifname}\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}", "tooltip-format-wifi": "{ifname} {essid} ({signalStrength:3}%)\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}", "tooltip-format-disconnected": "{ifname} disconnected", "on-click": "foot -T float nmtui" }, "pulseaudio": { "format": "{icon} {volume}% {format_source}", "format-muted": "{format_source}", "format-bluetooth": "{icon} {volume}% {format_source}", "format-bluetooth-muted": "{icon}{format_source}", "format-source": "", "format-source-muted": "", "format-icons": { "headphone": "🎧", "hands-free": "", "headset": "", "phone": "", "portable": "", "car": "", "default": ["", "", ""] }, "min-length": 7, "max-length": 12, "on-click": "$HOME/.config/sway/bin/sway_volume mute", "on-click-middle": "$HOME/.config/sway/bin/sway_volume source-mute", "on-click-right": "$HOME/.config/sway/bin/sway_volume gui", "on-scroll-up": "$HOME/.config/sway/bin/sway_volume increase", "on-scroll-down": "$HOME/.config/sway/bin/sway_volume decrease-mute" }, "tray": { "padding": 10, "spacing": 10 } }