# # YAMBAR CONFIG # # VARIABLES define: # Colours - &bg 000000ff - &fg ffffffff - &fgdim ffffff88 - &red f38ba8ff - &green 90ee90ff - &blue 89b4faff - &purple cba6f7ff - &yellow f1c40fff - &teal 00ddccff - &magenta ff4578ff - &RED ff0000ff - &YLW ffff00ff - &GRN 00ff00ff # Settings - &font 'hack-nerd:size=24:weight=bold' - &margin 20 - &height 50 - &line 2 # Actions - &select-workspace "swaymsg workspace number {name}" - &audiomixer footclient -T audiomixer pulsemixer - &calendar footclient -T calendar calcurse # MODULES battery: &battery name: BAT0 poll-interval: 1000 anchors: battery-anchor: &battery-anchor margin: *margin deco: stack: - {underline: {size: *line, color: *teal}} - {background: {color: *bg}} content: map: conditions: ~(state == "unknown"): map: default: {string: {text: "{state}"}} conditions: state == "discharging": - ramp: tag: capacity items: - string: {text: "({estimate}) {capacity}% ", foreground: *RED, <<: *battery-anchor} - string: {text: "({estimate}) {capacity}% ", foreground: *yellow, <<: *battery-anchor} - string: {text: "({estimate}) {capacity}% ", foreground: *teal, <<: *battery-anchor} - string: {text: "({estimate}) {capacity}% ", foreground: *teal, <<: *battery-anchor} - string: {text: "({estimate}) {capacity}% ", foreground: *teal, <<: *battery-anchor} state == "charging": - ramp: tag: capacity items: - string: {text: "({estimate}) {capacity}% ", foreground: *RED, <<: *battery-anchor} - string: {text: "({estimate}) {capacity}% ", foreground: *YLW, <<: *battery-anchor} - string: {text: "({estimate}) {capacity}% ", foreground: *GRN, <<: *battery-anchor} state == "full": - string: {text: "{capacity}% ", foreground: *green, <<: *battery-anchor} pipewire: &pipewire anchors: volume-anchor: &volume-anchor foreground: *yellow margin: *margin deco: stack: - {underline: {size: *line, color: *yellow}} - {background: {color: *bg}} on-click: left: *audiomixer content: map: conditions: type == "sink": map: default: - ramp: tag: cubic_volume items: - string: {text: "{cubic_volume}% ", <<: *volume-anchor} - string: {text: "{cubic_volume}% ", <<: *volume-anchor} - string: {text: "{cubic_volume}% ", <<: *volume-anchor} conditions: muted: string: text: "mute " foreground: *red margin: *margin deco: stack: - {underline: {size: *line, color: *red}} - {background: {color: *bg}} on-click: *audiomixer network: &network anchors: network-anchor: &network-anchor text: "{ssid} " margin: *margin deco: stack: - {underline: {size: *line, color: *green}} - {background: {color: *bg}} content: map: conditions: name == "wlan0": map: default: string: {text: "{ssid} ({state}) "} conditions: state == "up": string: {foreground: *green, <<: *network-anchor} state == "down": string: {foreground: *red, <<: *network-anchor} clock: &clock time-format: "%R" content: string: text: "{time} " foreground: *blue margin: *margin deco: stack: - {underline: {size: *line, color: *blue}} - {background: {color: *bg}} date: &date date-format: "%F" content: string: text: "{date} " foreground: *purple margin: *margin deco: stack: - {underline: {size: *line, color: *purple}} - {background: {color: *bg}} on-click: *calendar workspace: &workspace sort: ascending spacing: 5 content: "": map: default: string: text: "{name}" foreground: *fgdim margin: *margin on-click: *select-workspace conditions: name == "0": {string: {text: ""}} state == "focused": string: text: "{name}" foreground: *fg margin: *margin deco: stack: - {underline: {size: *line, color: *fg}} - {background: {color: *bg}} state == "urgent": string: text: "{name}" foreground: *red margin: *margin backlight: &backlight # note: name is found in '/sys/class/backlight' name: intel_backlight content: string: text: "{percent}% " margin: *margin foreground: *fg deco: stack: - {underline: {size: *line, color: *fg}} - {background: {color: *bg}} # LAYOUT bar: location: top foreground: *fg background: *bg margin: *margin font: *font spacing: 10 height: 49 left: - i3: *workspace right: - network: *network - backlight: *backlight - battery: *battery - pipewire: *pipewire - clock: *date - clock: *clock