# Mountaineer yambar — read-only system surface. # # Doctrine (AESTHETICS.md): # - Bar shows facts; it does not interact. # - Every non-ok segment routes the operator into a `sysop` invocation. # - Hue is reserved for non-ok state (red fault, yellow transient). # The resting bar is foreground-on-background. # # Segments below match AESTHETICS.md §yambar segments. bar: location: top height: 26 background: f7f3eeff foreground: 605a52ff font: Iosevka:pixelsize=14 spacing: 3 margin: 6 border: width: 0 left: - river: content: map: conditions: state == focused: string: {text: "{id}", font: "Iosevka:pixelsize=14:weight=bold"} state == visible: {string: {text: "{id}"}} state == unfocused: {string: {text: "{id}", foreground: 8c867eff}} state == invisible: {empty: {}} state == urgent: {string: {text: "{id}", foreground: c46a6aff}} center: [] right: # --- Mountaineer-specific: service and storage health --- - script: path: /usr/local/libexec/yambar/svc.sh args: [] content: map: conditions: state == ok: {string: {text: "svc ok", foreground: 605a52ff}} state == down: {string: {text: "svc {count} down", foreground: c46a6aff}} - script: path: /usr/local/libexec/yambar/zfs.sh args: [] content: map: conditions: state == ok: {string: {text: "zfs ok", foreground: 605a52ff}} state == degraded: {string: {text: "zfs degraded", foreground: c46a6aff}} # --- network --- - script: path: /usr/local/libexec/yambar/net.sh args: [] content: map: conditions: state == down: {string: {text: "net ↓", foreground: c46a6aff}} state == up: {string: {text: "{label}"}} # --- audio (pipewire) --- - pipewire: content: map: conditions: type == sink && muted: {string: {text: "vol mute", foreground: 8c867eff}} type == sink: {string: {text: "vol {linear_volume}"}} # --- battery (laptop only; hidden when AC + 100%) --- - battery: name: BAT0 poll-interval: 30000 content: map: conditions: state == charging: {string: {text: "bat {capacity}↑", foreground: a78a5eff}} state == discharging && capacity <= 20: {string: {text: "bat {capacity}", foreground: c46a6aff}} state == discharging: {string: {text: "bat {capacity}"}} state == full: {empty: {}} # --- clock --- - clock: date-format: "%a %d %b" time-format: "%H:%M" content: - string: {text: "{date} {time}"}