{ "layer": "top", "modules-left": ["sway/workspaces", "sway/mode"], "modules-center": ["sway/window"], "modules-right": ["tray", "custom/alsa", "network", "clock"], "sway/window": { "max-length": 100 }, "tray": { "show-passive-items": true }, "custom/alsa": { "exec": "amixer get Master | grep '%' | awk -F '[][]' '{print $2}'", //"exec-if": "alsactl monitor", "format": "V {}", "on-scroll-up": "amixer set Master 1%+", "on-scroll-down": "amixer set Master 1%-", "interval": 1 }, "network": { "format": "{ipaddr}", "format-disconnected": "Offline", "interval": 86400 }, "clock": { "format": "{:%a %d. %b %H:%M}" } }