diff options
author | Justine Smithies <justine@smithies.me.uk> | 2024-05-27 20:38:23 +0100 |
---|---|---|
committer | Justine Smithies <justine@smithies.me.uk> | 2024-05-27 20:38:23 +0100 |
commit | 51e4da34ea757e3478292b51b010010cb47fb57c (patch) | |
tree | 2955776a7f2d4d0cc183c0f6946143fa64cb69b7 | |
parent | eb45407ec6a536237f316f0576ea86d700d83fd6 (diff) |
Updated Yambar config after breaking changes for network module
-rw-r--r-- | .config/yambar/config.yml | 52 |
1 files changed, 22 insertions, 30 deletions
diff --git a/.config/yambar/config.yml b/.config/yambar/config.yml index 72d5148..d8193c9 100644 --- a/.config/yambar/config.yml +++ b/.config/yambar/config.yml @@ -142,36 +142,28 @@ bar: - backlight: name: amdgpu_bl0 content: [ string: {text: , font: *nerdfont}, string: {text: "{percent}%", on-click: { left: sh -c "brightnessctl -s > ~/.cache/brightness s 5-", right: sh -c "brightnessctl -s > ~/.cache/brightness s +5"}}] - # - network: - # name: enp5s0 - # content: - # map: - # conditions: - # state == down: {string: {text: , font: *nerdfont, foreground: ffffffff}} - # ~carrier: {empty: {}} - # carrier: - # map: - # default: {string: {text: , font: *nerdfont, foreground: ffffffff}} - # conditions: - # state == up && ipv4 != "": {string: {text: , font: *nerdfont}} - # - network: - # name: wlp3s0 - # poll-interval: 1000 - # content: - # map: - # default: {string: {text: , font: *nerdfont, foreground: ffffff66}} - # conditions: - # state == down: {string: {text: , font: *nerdfont, foreground: ffffffff}} - # state == up: - # map: - # default: - # - string: {text: , font: *nerdfont} - # - string: {text: "{ssid}"} - - # conditions: - # ipv4 == "": - # - string: {text: , font: *nerdfont, foreground: ffffff66} - # - string: {text: "{ssid}", foreground: ffffff66} + - network: + content: + map: + conditions: + name == enp5s0: + map: + conditions: + state == up: + - string: { text: , font: *nerdfont, foreground: ffffffff } + state == down: + - string: { text: , font: *nerdfont, foreground: ffffffff } + - network: + content: + map: + conditions: + name == wlp3s0: + map: + conditions: + state == up: + - string: { text: , font: *nerdfont, foreground: ffffff66 } + state == down: + - string: { text: , font: *nerdfont, foreground: ffffffff } - battery: name: BAT0 poll-interval: 10000 |