# # YAMBAR # # VARIABLES define: # Colours - &bg 000000ff - &bgdim 00000088 - &mg 222222ff - &fg ffffffff - &fgdim ffffff88 - &hidden 00000000 - &red ff959cff - &green 90ee90ff - &blue 89b4faff - &purple cba6f7ff - &yellow f1c40fff - &teal 00ddccff - &orange fab12Fff - &RED ff0000ff - &GRN 00ff00ff - &YLW ffff00ff # Settings - &font 'HackNerdFont:size=24:weight=regular' - &margin 20 - &height 50 # Actions - &select-workspace "swaymsg workspace number {name}" - &calendar footclient calcurse - &audiomixer footclient pulsemixer - &network-control iwd-control.sh - &volume-up volume up 1% - &volume-down volume down 1% - &brightness-up brightnessctl set +1% - &brightness-down brightnessctl --min-value=10 set 1-% # Scripts - &pacman-notify ~/.config/yambar/scripts/pacman-notify - &pacman-update ~/.config/yambar/scripts/pacman-update - &newsboat-open ~/.config/yambar/scripts/newsboat-open - ¬ify-bat ~/.config/yambar/scripts/notify-bat # MODULES battery: &battery name: BAT0 poll-interval: 5000 content: map: on-click: *notify-bat foreground: *teal margin: *margin default: {string: {text: "{state}"}} conditions: state == "discharging": - ramp: tag: capacity items: - string: {text: "{capacity}% 󰁺", foreground: *RED} - string: {text: "{capacity}% 󰁻", foreground: *orange} - string: {text: "{capacity}% 󰁼", foreground: *yellow} - string: {text: "{capacity}% 󰁽", foreground: *yellow} - string: {text: "{capacity}% 󰁾"} - string: {text: "{capacity}% 󰁿"} - string: {text: "{capacity}% 󰂀"} - string: {text: "{capacity}% 󰂁"} - string: {text: "{capacity}% 󰂂"} - string: {text: "{capacity}% 󰁹"} state == "charging": - ramp: tag: capacity items: - string: {text: "({estimate}) {capacity}% 󰢜", foreground: *RED} - string: {text: "({estimate}) {capacity}% 󰂆", foreground: *orange} - string: {text: "({estimate}) {capacity}% 󰂇", foreground: *yellow} - string: {text: "({estimate}) {capacity}% 󰂈", foreground: *yellow} - string: {text: "({estimate}) {capacity}% 󰢝"} - string: {text: "({estimate}) {capacity}% 󰂉"} - string: {text: "({estimate}) {capacity}% 󰢞"} - string: {text: "({estimate}) {capacity}% 󰂊"} - string: {text: "({estimate}) {capacity}% 󰂋"} - string: {text: "({estimate}) {capacity}% 󰂅"} state == "full": - string: {text: "{capacity}% 󰁹", foreground: *green} pipewire: &pipewire content: map: margin: *margin foreground: *yellow conditions: type == "sink": map: default: - ramp: tag: cubic_volume items: - string: {text: "{cubic_volume}% "} - string: {text: "{cubic_volume}% "} - string: {text: "{cubic_volume}% "} conditions: muted: {string: {text: "mute ", foreground: *red}} on-click: left: *audiomixer wheel-up: *volume-up wheel-down: *volume-down network: &network content: map: conditions: name == "wlan0": map: default: {string: {text: "{ssid} ({state}) "}} conditions: state == "up": map: conditions: quality <= 25: string: {text: "{ssid} 󰤟", margin: *margin, foreground: *green} quality <= 50: string: {text: "{ssid} 󰤢", margin: *margin, foreground: *green} quality <= 75: string: {text: "{ssid} 󰤥", margin: *margin, foreground: *green} quality <= 100: string: {text: "{ssid} 󰤨", margin: *margin, foreground: *green} state == "down": string: {text: "offline 󰤮", margin: *margin, foreground: *red} on-click: *network-control clock: &clock time-format: "%R" content: map: margin: *margin foreground: *blue conditions: default: {string: {text: "{time}"}} # AM time < "01:00": {string: {text: "{time} 󱑊"}} time < "02:00": {string: {text: "{time} 󱐿"}} time < "03:00": {string: {text: "{time} 󱑀"}} time < "04:00": {string: {text: "{time} 󱑁"}} time < "05:00": {string: {text: "{time} 󱑂"}} time < "06:00": {string: {text: "{time} 󱑃"}} time < "07:00": {string: {text: "{time} 󱑄"}} time < "08:00": {string: {text: "{time} 󱑅"}} time < "09:00": {string: {text: "{time} 󱑆"}} time < "10:00": {string: {text: "{time} 󱑇"}} time < "11:00": {string: {text: "{time} 󱑈"}} time < "12:00": {string: {text: "{time} 󱑉"}} # PM time < "13:00": {string: {text: "{time} 󱑊"}} time < "14:00": {string: {text: "{time} 󱐿"}} time < "15:00": {string: {text: "{time} 󱑀"}} time < "16:00": {string: {text: "{time} 󱑁"}} time < "17:00": {string: {text: "{time} 󱑂"}} time < "18:00": {string: {text: "{time} 󱑃"}} time < "19:00": {string: {text: "{time} 󱑄"}} time < "20:00": {string: {text: "{time} 󱑅"}} time < "21:00": {string: {text: "{time} 󱑆"}} time < "22:00": {string: {text: "{time} 󱑇"}} time < "23:00": {string: {text: "{time} 󱑈"}} time < "24:00": {string: {text: "{time} 󱑉"}} date: &date date-format: "%a %b %d" content: string: text: "{date} " margin: *margin foreground: *purple on-click: *calendar workspace: &workspace sort: ascending spacing: 5 content: "": map: margin: *margin foreground: *fgdim on-click: *select-workspace default: string: {text: "{name}"} conditions: name == "0": {string: {text: ""}} state == "focused": string: {text: "{name}", foreground: *fg} state == "urgent": string: {text: "{name}", foreground: *red} # Note: name is found in '/sys/class/backlight' backlight: &backlight name: intel_backlight content: map: on-click: wheel-up: *brightness-up wheel-down: *brightness-down margin: *margin foreground: *fg conditions: percent <= 10: {string: {text: "{percent} 󱩎"}} percent <= 20: {string: {text: "{percent} 󱩏"}} percent <= 30: {string: {text: "{percent} 󱩐"}} percent <= 40: {string: {text: "{percent} 󱩑"}} percent <= 50: {string: {text: "{percent} 󱩒"}} percent <= 60: {string: {text: "{percent} 󱩓"}} percent <= 70: {string: {text: "{percent} 󱩔"}} percent <= 80: {string: {text: "{percent} 󱩕"}} percent <= 90: {string: {text: "{percent} 󱩖"}} percent <= 100: {string: {text: "{percent} 󰛨"}} pacman: &pacman path: ~/.config/yambar/scripts/pacman poll-interval: 5000 content: string: text: "{count} " foreground: *red margin: *margin on-click: left: *pacman-notify right: *pacman-update # Newsboat newsboat: &newsboat path: ~/.config/yambar/scripts/newsboat args: [] poll-interval: 10000 content: string: text: "{unread} " foreground: *orange margin: *margin on-click: left: *newsboat-open mpd: &mpd host: /run/user/1000/mpd/socket anchors: mpd-anchor: &mpd-anchor foreground: *fg margin: *margin content: map: foreground: *fg margin: *margin default: {string: {text: "{state} "}} on-click: left: mpc toggle right: mpc next wheel-up: mpc next wheel-down: mpc prev conditions: state == playing: string: {text: "{artist} - {title} [{pos}/{end}] "} state == paused: string: {text: "{artist} - {title} ", foreground: *fgdim} state == stopped: string: {text: "mpd "} menu: &menu content: string: margin: *margin foreground: *fg text: "" on-click: left: bemenu-run mem: &mem poll-interval: 2500 content: string: text: "{used:mb}MB " margin: *margin foreground: *fg cpu: &cpu poll-interval: 2500 content: map: conditions: id < 0: string: text: "{cpu}% " margin: *margin foreground: *fg # LAYOUT bar: location: top foreground: *fg background: *mg margin: *margin font: *font spacing: 10 height: 45 border: {color: *bg, bottom-width: 2} left: - i3: *workspace right: - mpd: *mpd - script: *newsboat - script: *pacman - network: *network - backlight: *backlight - battery: *battery - pipewire: *pipewire - clock: *date - clock: *clock