From 2828737e5613e34e280f01655d476a62cf7ab8f4 Mon Sep 17 00:00:00 2001 From: Alexey Yerin Date: Sun, 18 Dec 2022 11:54:56 +0300 Subject: [PATCH] yambar: update config to work on 1.9.0 --- yambar/config.yml | 43 +++++++++++++++++++------------------------ 1 file changed, 19 insertions(+), 24 deletions(-) diff --git a/yambar/config.yml b/yambar/config.yml index 0077c18..ee85394 100644 --- a/yambar/config.yml +++ b/yambar/config.yml @@ -19,59 +19,54 @@ bar: content: map: - tag: state - values: - focused: + conditions: + state == focused: string: <<: *river_base deco: stack: - background: { color: 599bf6ff } - underline: { size: 2, color: fefefeff } - - unfocused: + state == unfocused: string: <<: *river_base - invisible: + state == invisible: map: - tag: occupied - values: - true: + conditions: + occupied: string: <<: *river_base deco: stack: - underline: { size: 2, color: fefefeff } - false: + ~occupied: map: - tag: id default: empty: {} - values: + conditions: # 9 default tags that are shown unless occupied - 1: { string: { <<: *river_base }} - 2: { string: { <<: *river_base }} - 3: { string: { <<: *river_base }} - 4: { string: { <<: *river_base }} - 5: { string: { <<: *river_base }} - 6: { string: { <<: *river_base }} - 7: { string: { <<: *river_base }} - 8: { string: { <<: *river_base }} - 9: { string: { <<: *river_base }} + id == 1: { string: { <<: *river_base }} + id == 2: { string: { <<: *river_base }} + id == 3: { string: { <<: *river_base }} + id == 4: { string: { <<: *river_base }} + id == 5: { string: { <<: *river_base }} + id == 6: { string: { <<: *river_base }} + id == 7: { string: { <<: *river_base }} + id == 8: { string: { <<: *river_base }} + id == 9: { string: { <<: *river_base }} right: - script: path: /usr/bin/env args: [yambar-irc] content: map: - tag: count default: string: on-click: yambar-irc clear margin: 12 text: "IRC highlights: {count}" - values: - 0: + conditions: + count == 0: empty: {} - clock: date-format: "%F" -- 2.38.5