forked from external/yambar
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:
|
# content:
|
||||||
# - map:
|
# - map:
|
||||||
# margin: 4
|
# margin: 4
|
||||||
# tag: tag_0_occupied
|
# conditions:
|
||||||
# values:
|
# tag_0_occupied:
|
||||||
# true:
|
|
||||||
# map:
|
# map:
|
||||||
# tag: tag_0_focused
|
# conditions:
|
||||||
# values:
|
# tag_0_focused: {string: {text: "{tag_0}", <<: *focused}}
|
||||||
# true: {string: {text: "{tag_0}", <<: *focused}}
|
# ~tag_0_focused: {string: {text: "{tag_0}", <<: *occupied}}
|
||||||
# false: {string: {text: "{tag_0}", <<: *occupied}}
|
# ~tag_0_occupied:
|
||||||
# false:
|
|
||||||
# map:
|
# map:
|
||||||
# tag: tag_0_focused
|
# conditions:
|
||||||
# values:
|
# tag_0_focused: {string: {text: "{tag_0}", <<: *focused}}
|
||||||
# true: {string: {text: "{tag_0}", <<: *focused}}
|
# ~tag_0_focused: {string: {text: "{tag_0}", <<: *default}}
|
||||||
# false: {string: {text: "{tag_0}", <<: *default}}
|
|
||||||
# ...
|
# ...
|
||||||
# ...
|
# ...
|
||||||
# ...
|
# ...
|
||||||
# - map:
|
# - map:
|
||||||
# margin: 4
|
# margin: 4
|
||||||
# tag: tag_8_occupied
|
# conditions:
|
||||||
# values:
|
# tag_8_occupied:
|
||||||
# true:
|
|
||||||
# map:
|
# map:
|
||||||
# tag: tag_8_focused
|
# conditions:
|
||||||
# values:
|
# tag_8_focused: {string: {text: "{tag_8}", <<: *focused}}
|
||||||
# true: {string: {text: "{tag_8}", <<: *focused}}
|
# ~tag_8_focused: {string: {text: "{tag_8}", <<: *occupied}}
|
||||||
# false: {string: {text: "{tag_8}", <<: *occupied}}
|
# ~tag_8_occupied:
|
||||||
# false:
|
|
||||||
# map:
|
# map:
|
||||||
# tag: tag_8_focused
|
|
||||||
# values:
|
# values:
|
||||||
# true: {string: {text: "{tag_8}", <<: *focused}}
|
# tag_8_focused: {string: {text: "{tag_8}", <<: *focused}}
|
||||||
# false: {string: {text: "{tag_8}", <<: *default}}
|
# ~tag_8_focused: {string: {text: "{tag_8}", <<: *default}}
|
||||||
# - list:
|
# - list:
|
||||||
# spacing: 3
|
# spacing: 3
|
||||||
# items:
|
# items:
|
||||||
|
|
|
@ -24,10 +24,9 @@
|
||||||
# args: []
|
# args: []
|
||||||
# content:
|
# content:
|
||||||
# map:
|
# map:
|
||||||
# tag: pkg
|
|
||||||
# default: { string: { text: "{pacman} + {aur} = {pkg}" } }
|
# default: { string: { text: "{pacman} + {aur} = {pkg}" } }
|
||||||
# values:
|
# conditions:
|
||||||
# 0: {string: {text: no updates}}
|
# pkg == 0: {string: {text: no updates}}
|
||||||
|
|
||||||
|
|
||||||
declare interval aur_helper pacman_num aur_num pkg_num
|
declare interval aur_helper pacman_num aur_num pkg_num
|
||||||
|
|
Loading…
Add table
Reference in a new issue