[yambar] Update map syntax to post-1.8.0
I'm using yambar from the master branch now, the map syntax was changed.
This commit is contained in:
parent
9785790d3e
commit
e8e8593b2b
1 changed files with 42 additions and 34 deletions
|
@ -260,17 +260,16 @@ bar:
|
||||||
path: /home/midgard/.config/yambar/temp.sh
|
path: /home/midgard/.config/yambar/temp.sh
|
||||||
content:
|
content:
|
||||||
map:
|
map:
|
||||||
tag: status
|
|
||||||
default:
|
default:
|
||||||
- string: &str_temp {text: "{temp}°C", font: "Fira Mono:size=12", right-margin: 5}
|
- string: &str_temp {text: "{temp}°C", font: "Fira Mono:size=12", right-margin: 5}
|
||||||
- string: &str_rpm {text: "{rpm} RPM", font: "Fira Sans:size=12", foreground: *col_fg_alt}
|
- string: &str_rpm {text: "{rpm} RPM", font: "Fira Sans:size=12", foreground: *col_fg_alt}
|
||||||
values:
|
conditions:
|
||||||
normal:
|
status == normal:
|
||||||
empty: {}
|
empty: {}
|
||||||
caution:
|
status == caution:
|
||||||
- string: {<<: *str_temp, foreground: *col_fg_caution}
|
- string: {<<: *str_temp, foreground: *col_fg_caution}
|
||||||
- string: {<<: *str_rpm}
|
- string: {<<: *str_rpm}
|
||||||
alert:
|
status == alert:
|
||||||
- string: {<<: *str_temp, foreground: *col_fg_alert}
|
- string: {<<: *str_temp, foreground: *col_fg_alert}
|
||||||
- string: {<<: *str_rpm}
|
- string: {<<: *str_rpm}
|
||||||
|
|
||||||
|
@ -281,7 +280,6 @@ bar:
|
||||||
path: /home/midgard/.config/yambar/clock.py
|
path: /home/midgard/.config/yambar/clock.py
|
||||||
content:
|
content:
|
||||||
map:
|
map:
|
||||||
tag: time_of_day
|
|
||||||
default:
|
default:
|
||||||
list:
|
list:
|
||||||
spacing: 0
|
spacing: 0
|
||||||
|
@ -302,12 +300,16 @@ bar:
|
||||||
- string:
|
- string:
|
||||||
text: " {date}"
|
text: " {date}"
|
||||||
font: Fira Sans:size=12
|
font: Fira Sans:size=12
|
||||||
values:
|
conditions:
|
||||||
night: {list: {foreground: "888888ff", items: *clock_contents}}
|
time_of_day == night: {list: {foreground: "888888ff", items: *clock_contents}}
|
||||||
morning: {list: {foreground: "ddbb99ff", items: *clock_contents}}
|
#time_of_day == morning: {list: {foreground: "ddbb99ff", items: *clock_contents}}
|
||||||
noon: {list: {foreground: "ddddbbff", items: *clock_contents}}
|
time_of_day == morning: {list: {foreground: "e2d39aff", items: *clock_contents}}
|
||||||
afternoon: {list: {foreground: "ddddddff", items: *clock_contents}}
|
#time_of_day == noon: {list: {foreground: "ddddbbff", items: *clock_contents}}
|
||||||
evening: {list: {foreground: "dd99bbff", items: *clock_contents}}
|
time_of_day == noon: {list: {foreground: "dec7aaff", items: *clock_contents}}
|
||||||
|
#time_of_day == afternoon: {list: {foreground: "ddddddff", items: *clock_contents}}
|
||||||
|
time_of_day == afternoon: {list: {foreground: "deceb9ff", items: *clock_contents}}
|
||||||
|
#time_of_day == evening: {list: {foreground: "dd99bbff", items: *clock_contents}}
|
||||||
|
time_of_day == evening: {list: {foreground: "ff948dff", items: *clock_contents}}
|
||||||
|
|
||||||
|
|
||||||
right:
|
right:
|
||||||
|
@ -317,7 +319,6 @@ bar:
|
||||||
font: Material Icons:pixelsize=15
|
font: Material Icons:pixelsize=15
|
||||||
content:
|
content:
|
||||||
- map:
|
- map:
|
||||||
tag: muted
|
|
||||||
default:
|
default:
|
||||||
ramp:
|
ramp:
|
||||||
tag: volume
|
tag: volume
|
||||||
|
@ -325,18 +326,17 @@ bar:
|
||||||
- string: {text: ""}
|
- string: {text: ""}
|
||||||
- string: {text: ""}
|
- string: {text: ""}
|
||||||
- string: {text: ""}
|
- string: {text: ""}
|
||||||
values:
|
conditions:
|
||||||
true: {string: {text: "", foreground: "777777ff"}}
|
muted: {string: {text: "", foreground: "777777ff"}}
|
||||||
|
|
||||||
- mpd:
|
- mpd:
|
||||||
host: /var/lib/mpd/socket
|
host: /var/lib/mpd/socket
|
||||||
content:
|
content:
|
||||||
map:
|
map:
|
||||||
foreground: *col_fg_alt
|
foreground: *col_fg_alt
|
||||||
tag: state
|
|
||||||
default: {empty: {}}
|
default: {empty: {}}
|
||||||
values:
|
conditions:
|
||||||
playing:
|
state == playing:
|
||||||
- string: {text: "", font: *font_material}
|
- string: {text: "", font: *font_material}
|
||||||
- list: &mpd
|
- list: &mpd
|
||||||
items:
|
items:
|
||||||
|
@ -352,13 +352,24 @@ bar:
|
||||||
#indicator: {string: {text: "╴", foreground: "eeeeeeff"}}
|
#indicator: {string: {text: "╴", foreground: "eeeeeeff"}}
|
||||||
- string:
|
- string:
|
||||||
text: "{artist}"
|
text: "{artist}"
|
||||||
max: 13
|
max: 15
|
||||||
font: "Fira Sans:size=11"
|
font: "Fira Sans:size=11"
|
||||||
|
- map:
|
||||||
|
default: {string: {text: "–"}}
|
||||||
|
conditions:
|
||||||
|
artist == "": {empty: {}}
|
||||||
- string:
|
- string:
|
||||||
text: "– {title}"
|
text: "{title}"
|
||||||
max: 22
|
max: 20
|
||||||
font: "Fira Sans:size=11"
|
font: "Fira Sans:size=11"
|
||||||
#paused:
|
- map:
|
||||||
|
default: {empty: {}}
|
||||||
|
conditions:
|
||||||
|
title == "":
|
||||||
|
string:
|
||||||
|
text: "{file}"
|
||||||
|
max: 20
|
||||||
|
#state == paused:
|
||||||
#- string: {text: "", font: *font_material}
|
#- string: {text: "", font: *font_material}
|
||||||
#- list: *mpd
|
#- list: *mpd
|
||||||
|
|
||||||
|
@ -367,12 +378,11 @@ bar:
|
||||||
content:
|
content:
|
||||||
map:
|
map:
|
||||||
font: *font_supplements
|
font: *font_supplements
|
||||||
tag: state
|
|
||||||
default: {string: {foreground: *col_fg_alt, text: "{state}"}}
|
default: {string: {foreground: *col_fg_alt, text: "{state}"}}
|
||||||
values:
|
conditions:
|
||||||
"down": {string: {foreground: *col_fg_alt, text: ""}}
|
state == down: {string: {foreground: *col_fg_alt, text: ""}}
|
||||||
"dormant": {string: {text: ""}}
|
state == dormant: {string: {text: ""}}
|
||||||
"up":
|
state == up:
|
||||||
list:
|
list:
|
||||||
spacing: 0
|
spacing: 0
|
||||||
items:
|
items:
|
||||||
|
@ -390,10 +400,9 @@ bar:
|
||||||
content:
|
content:
|
||||||
map:
|
map:
|
||||||
font: *font_material
|
font: *font_material
|
||||||
tag: state
|
|
||||||
default: {empty: {}}
|
default: {empty: {}}
|
||||||
values:
|
conditions:
|
||||||
"up":
|
state == up:
|
||||||
string: {text: ""}
|
string: {text: ""}
|
||||||
|
|
||||||
- battery:
|
- battery:
|
||||||
|
@ -401,17 +410,16 @@ bar:
|
||||||
content:
|
content:
|
||||||
map:
|
map:
|
||||||
font: *font_supplements
|
font: *font_supplements
|
||||||
tag: state
|
|
||||||
default:
|
default:
|
||||||
ramp:
|
ramp:
|
||||||
tag: capacity
|
tag: capacity
|
||||||
items: *battery_range
|
items: *battery_range
|
||||||
values:
|
conditions:
|
||||||
"charging":
|
state == charging:
|
||||||
ramp:
|
ramp:
|
||||||
tag: capacity
|
tag: capacity
|
||||||
items: *battery_range_charging
|
items: *battery_range_charging
|
||||||
"not charging":
|
state == not charging:
|
||||||
- ramp:
|
- ramp:
|
||||||
tag: capacity
|
tag: capacity
|
||||||
items: *battery_range_charging
|
items: *battery_range_charging
|
||||||
|
|
Loading…
Reference in a new issue