[{ "layer": "bottom", "position": "top", "modules-left": ["sway/workspaces", "sway/mode", "sway/window"], "modules-center": [], "modules-right": ["pulseaudio", "backlight", "network", "custom/vpn", "custom/pkg", "battery", "clock"], "sway/mode": { "format": " {}" }, "sway/workspaces": { "format": "{name}", "disable-scroll": true }, "sway/window": { "max-length": 80, "tooltip": false }, "clock": { "interval": 1, "format": "{:%d%m%y %H%M%S}", "tooltip": false }, "battery": { "format-icons": ["", "", "", "", ""], "format": "{icon} {capacity}%", "format-charging": "{icon} {capacity}%", "format-discharging": "{icon} {time}", "format-full": "{icon} {capacity}%", "interval": 30, "states": { "warning": 25, "critical": 10 }, "tooltip": false }, "custom/pkg": { "format": "{}", "interval": 3600, "exec": "~/.config/waybar/modules/pkg.sh" }, "network": { "format-wifi": " {essid} {signalStrength}%", "format-ethernet": " {ifname}", "format-disconnected": "", "tooltip": false }, "pulseaudio": { "format": "{icon} {volume}%", "format-muted": "", "format-icons": { "default": [""], "headphones": [""] }, "on-scroll-up": "pamixer -ui 1 && pamixer --get-volume > $SWAYSOCK.wob", "on-scroll-down": "pamixer -ud 1 && pamixer --get-volume > $SWAYSOCK.wob", "tooltip": false }, "custom/vpn": { "format": " vpn", "interval": 5, "exec" : "echo a", "exec-if" : "systemctl is-active --quiet vpn" }, "backlight": { "format": "{icon} {percent}%", "format-icons": [""], "on-scroll-up": "light -A 2 && light -G | cut -d'.' -f1 > $SWAYSOCK.wob", "on-scroll-down": "light -U 2 && light -G | cut -d'.' -f1 > $SWAYSOCK.wob" } }, { "layer": "bottom", "position": "bottom", "modules-left": ["tray", "custom/spotify"], "modules-center": ["network#speed"], "modules-right": ["custom/backup", "custom/zfs-trim", "custom/zfs-scrub", "temperature", "custom/storage", "cpu", "memory" ], "custom/spotify": { "format": " {}", "interval": 1, "exec": "~/.config/waybar/modules/spotify.sh", "exec-if": "pgrep spotify" }, "network#speed": { "format-wifi": " {bandwidthDownOctets} {bandwidthUpOctets}", "format-ethernet": " {bandwidthDownOctets} {bandwidthUpOctets}", "interval": 1 }, "temperature": { "format": " {temperatureC}°C", "thermal-zone": 1, "critical-threshold": 60, "format-critical": " {temperatureC}°C" }, "custom/storage": { "format": " {}%", "return-type": "json", "interval": 60, "exec": "~/.config/waybar/modules/storage.sh /" }, "custom/zfs-trim": { "format": " trimming...", "interval": 5, "exec": "echo a", "exec-if" : "systemctl is-active --quiet zfs-trim" }, "custom/zfs-scrub": { "format": " scrubbing...", "interval": 5, "exec": "echo a", "exec-if" : "systemctl is-active --quiet zfs-scrub" }, "custom/backup": { "format": " backup...", "interval": 5, "exec": "echo a", "exec-if" : "systemctl is-active --quiet backup" }, "cpu": { "interval": 3, "format": " {usage}%" }, "memory": { "interval": 3, "format": " {percentage}%" }, "tray": { "icon-size": 18 } }]