# --- COLORS & STYLES --- _styles: focused: &focused foreground: eeeeeeff normal: &normal foreground: bbbbbbff # --- BAR CONFIG --- bar: monitor: ${MON_NAME} height: 20 location: top #background: 222222ff background: 4B7A82FF font: Inconsolata LGC:size=10 left: - script: path: /usr/bin/yambar-hyprland-wses anchors: #ws_focused: &ws_focused fba922ff ws_focused: &ws_focused fba922ff ws_active: &ws_active ffffffff ws_empty: &ws_empty 000000ff ws_other: &ws_other bbbbbbff # you can use `{workspace_N}` here to use the workspace name # assigned by Hyprland instead of hard-coding one here. That # name is, as far as I can tell, always just the index of the # workspace though, so not all that valuable. ws_1: &ws_1 " 1" ws_2: &ws_2 "2" ws_3: &ws_3 "3" ws_4: &ws_4 "4" ws_5: &ws_5 "5" ws_6: &ws_6 "6" ws_7: &ws_7 "7" ws_8: &ws_8 "8" ws_9: &ws_9 "9" content: list: spacing: 6 items: - map: default: string: { text: *ws_1, foreground: *ws_other } conditions: workspace_count < 2: # if you replace all of these empty: entries with # # string: { text: *ws_N, foreground: *ws_empty } # # instead, then you'll always see the full # workspace list. however, you'll be unable to use # `{workspace_N}` as the workspace names in the # anchors list above. empty: {} workspace_1_focused: string: { text: *ws_1, foreground: *ws_focused } workspace_1_active: string: { text: *ws_1, foreground: *ws_active } workspace_1_windows == 0: string: { text: *ws_1, foreground: *ws_empty } # All of the maps below are identical to the one above, # except with N++. - map: default: string: { text: *ws_2, foreground: *ws_other } conditions: workspace_count < 3: empty: {} workspace_2_focused: string: { text: *ws_2, foreground: *ws_focused } workspace_2_active: string: { text: *ws_2, foreground: *ws_active } workspace_2_windows == 0: string: { text: *ws_2, foreground: *ws_empty } - map: default: string: { text: *ws_3, foreground: *ws_other } conditions: workspace_count < 4: empty: {} workspace_3_focused: string: { text: *ws_3, foreground: *ws_focused } workspace_3_active: string: { text: *ws_3, foreground: *ws_active } workspace_3_windows == 0: string: { text: *ws_3, foreground: *ws_empty } - map: default: string: { text: *ws_4, foreground: *ws_other } conditions: workspace_count < 5: empty: {} workspace_4_focused: string: { text: *ws_4, foreground: *ws_focused } workspace_4_active: string: { text: *ws_4, foreground: *ws_active } workspace_4_windows == 0: string: { text: *ws_4, foreground: *ws_empty } - map: default: string: { text: *ws_5, foreground: *ws_other } conditions: workspace_count < 6: empty: {} workspace_5_focused: string: { text: *ws_5, foreground: *ws_focused } workspace_5_active: string: { text: *ws_5, foreground: *ws_active } workspace_5_windows == 0: string: { text: *ws_5, foreground: *ws_empty } - map: default: string: { text: *ws_6, foreground: *ws_other } conditions: workspace_count < 7: empty: {} workspace_6_focused: string: { text: *ws_6, foreground: *ws_focused } workspace_6_active: string: { text: *ws_6, foreground: *ws_active } workspace_6_windows == 0: string: { text: *ws_6, foreground: *ws_empty } - map: default: string: { text: *ws_7, foreground: *ws_other } conditions: workspace_count < 8: empty: {} workspace_7_focused: string: { text: *ws_7, foreground: *ws_focused } workspace_7_active: string: { text: *ws_7, foreground: *ws_active } workspace_7_windows == 0: string: { text: *ws_7, foreground: *ws_empty } - map: default: string: { text: *ws_8, foreground: *ws_other } conditions: workspace_count < 9: empty: {} workspace_8_focused: string: { text: *ws_8, foreground: *ws_focused } workspace_8_active: string: { text: *ws_8, foreground: *ws_active } workspace_8_windows == 0: string: { text: *ws_8, foreground: *ws_empty } - map: default: string: { text: *ws_9, foreground: *ws_other } conditions: workspace_count < 10: empty: {} workspace_9_focused: string: { text: *ws_9, foreground: *ws_focused } workspace_9_active: string: { text: *ws_9, foreground: *ws_active } workspace_9_windows == 0: string: { text: *ws_9, foreground: *ws_empty } center: - foreign-toplevel: content: map: conditions: activated: { string: { text: "{title}", foreground: ffffffff } } ~activated: { empty: {} } right: - script: path: ~/.local/bin/hypr-status.sh poll-interval: 2000 content: { string: { text: " {hstatus} ", foreground: ffffffff } }