mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-19 19:25:41 +02:00
fix configurations in example scripts
We forgot to update the configurations in the example scripts to the new map syntax based on conditions. This fixes that. Related to #201
This commit is contained in:
parent
b331473a6b
commit
084a9021b9
2 changed files with 20 additions and 27 deletions
|
@ -31,39 +31,33 @@
|
|||
# content:
|
||||
# - map:
|
||||
# margin: 4
|
||||
# tag: tag_0_occupied
|
||||
# values:
|
||||
# true:
|
||||
# conditions:
|
||||
# tag_0_occupied:
|
||||
# map:
|
||||
# tag: tag_0_focused
|
||||
# values:
|
||||
# true: {string: {text: "{tag_0}", <<: *focused}}
|
||||
# false: {string: {text: "{tag_0}", <<: *occupied}}
|
||||
# false:
|
||||
# conditions:
|
||||
# tag_0_focused: {string: {text: "{tag_0}", <<: *focused}}
|
||||
# ~tag_0_focused: {string: {text: "{tag_0}", <<: *occupied}}
|
||||
# ~tag_0_occupied:
|
||||
# map:
|
||||
# tag: tag_0_focused
|
||||
# values:
|
||||
# true: {string: {text: "{tag_0}", <<: *focused}}
|
||||
# false: {string: {text: "{tag_0}", <<: *default}}
|
||||
# conditions:
|
||||
# tag_0_focused: {string: {text: "{tag_0}", <<: *focused}}
|
||||
# ~tag_0_focused: {string: {text: "{tag_0}", <<: *default}}
|
||||
# ...
|
||||
# ...
|
||||
# ...
|
||||
# ...
|
||||
# - map:
|
||||
# margin: 4
|
||||
# tag: tag_8_occupied
|
||||
# values:
|
||||
# true:
|
||||
# conditions:
|
||||
# tag_8_occupied:
|
||||
# map:
|
||||
# tag: tag_8_focused
|
||||
# values:
|
||||
# true: {string: {text: "{tag_8}", <<: *focused}}
|
||||
# false: {string: {text: "{tag_8}", <<: *occupied}}
|
||||
# false:
|
||||
# conditions:
|
||||
# tag_8_focused: {string: {text: "{tag_8}", <<: *focused}}
|
||||
# ~tag_8_focused: {string: {text: "{tag_8}", <<: *occupied}}
|
||||
# ~tag_8_occupied:
|
||||
# map:
|
||||
# tag: tag_8_focused
|
||||
# values:
|
||||
# true: {string: {text: "{tag_8}", <<: *focused}}
|
||||
# false: {string: {text: "{tag_8}", <<: *default}}
|
||||
# tag_8_focused: {string: {text: "{tag_8}", <<: *focused}}
|
||||
# ~tag_8_focused: {string: {text: "{tag_8}", <<: *default}}
|
||||
# - list:
|
||||
# spacing: 3
|
||||
# items:
|
||||
|
|
|
@ -24,10 +24,9 @@
|
|||
# args: []
|
||||
# content:
|
||||
# map:
|
||||
# tag: pkg
|
||||
# default: { string: { text: "{pacman} + {aur} = {pkg}" } }
|
||||
# values:
|
||||
# 0: {string: {text: no updates}}
|
||||
# conditions:
|
||||
# pkg == 0: {string: {text: no updates}}
|
||||
|
||||
|
||||
declare interval aur_helper pacman_num aur_num pkg_num
|
||||
|
|
Loading…
Add table
Reference in a new issue