From bbc71a84c4b4fe06248abb25caeabe9325893596 Mon Sep 17 00:00:00 2001 From: Andrew Scott Date: Thu, 15 Jun 2023 18:44:19 -0400 Subject: [PATCH] Add yambar --- dot_config/yambar/config.yml | 102 +++++++++++++++++++++++++++++++++++ 1 file changed, 102 insertions(+) create mode 100644 dot_config/yambar/config.yml diff --git a/dot_config/yambar/config.yml b/dot_config/yambar/config.yml new file mode 100644 index 0000000..a9444df --- /dev/null +++ b/dot_config/yambar/config.yml @@ -0,0 +1,102 @@ +hack: &hack Hack:pixelsize=10 +awesome: &awesome Font Awesome 6 Free:style=solid:pixelsize=12 +.everforest: + 0: &foreground d8caacff + 1: &background 323d43ff + 2: &black 4a555bff + 3: &dark_grey 525c62ff + 4: &dark_red e26c6eff + 5: &red e68183ff + 6: &dark_green 9bb86fff + 7: &green a7c080ff + 8: &dark_yellow d5b26bff + 9: &yellow dbbc7fff + 10: &dark_blue 6eb2a9ff + 11: &blue 7fbbb3ff + 12: &dark_magenta cf87a9ff + 13: &magenta d699b6ff + 14: &dark_cyan 72b783ff + 15: &cyan 83c092ff + 16: &light_grey d0bf9bff + 17: &white d8caacff + +bar: + monitor: DP-2 + height: 26 + location: bottom + layer: top + spacing: 2 + margin: 2 + font: Hack:pixelsize=10 + foreground: *foreground + background: *background + border: + width: 1 + color: *dark_cyan + margin: 2 + + left: + - river: + anchors: + - base: &river_base + margin: 10 + text: "{id}" + on-click: sh -c 'riverctl set-focused-tags $((1 << ({id} - 1)))' + + content: + map: + on-click: sh -c 'riverctl set-focused-tags $((1 << ({id} - 1)))' + conditions: + urgent: + string: + <<: *river_base + deco: {background: {color: *dark_red}} + focused: + string: + <<: *river_base + deco: {background: {color: *dark_cyan}} + ~focused && occupied: + string: + <<: *river_base + deco: {background: {color: *light_grey}} + visible && occupied: + string: + <<: *river_base + deco: {background: {color: *dark_green}} + visible && ~occupied: + string: + <<: *river_base + deco: {background: {color: *dark_blue}} + ~visible && occupied: + string: + <<: *river_base + deco: {background: {color: *dark_grey}} + ~visible && ~occupied: {empty: {}} + ~focused: + string: + <<: *river_base + + right: + - network: + name: wlan0 + poll-interval: 1000 + content: + map: + default: {string: {text: , font: *awesome, foreground: *black}} + conditions: + state == down: {string: {text: , font: *awesome, foreground: *red}} + state == up: + map: + default: + - string: {text: , font: *awesome} + - string: {text: "{ssid} {dl-speed:mb}/{ul-speed:mb} Mb/s"} + conditions: + ipv4 == "": + - string: {text: , font: *awesome, foreground: *black} + - string: {text: "{ssid} {dl-speed:mb}/{ul-speed:mb} Mb/s", foreground: *black} + - clock: + content: + - string: {text: , font: *awesome} + - string: {text: "{date}", right-margin: 5} + - string: {text: , font: *awesome} + - string: {text: "{time}"}