Some Waybar options use variables (fonts, thermal)

This commit is contained in:
Yorick Barbanneau 2023-05-15 00:06:11 +02:00
parent 798ddf4a60
commit 6884f050da
2 changed files with 7 additions and 19 deletions

View file

@ -39,7 +39,7 @@ waybar_options:
timezone: "Europe/Paris" timezone: "Europe/Paris"
format-alt: "{:%Y-%m-%d}" format-alt: "{:%Y-%m-%d}"
temperature: temperature:
thermal-zone: 6 thermal-zone: "{{ cpu_thermal_zone | default(6) }}"
critical-threshold: 80 critical-threshold: 80
format: "{temperatureC}°C  " format: "{temperatureC}°C  "
cpu: cpu:
@ -123,7 +123,8 @@ waybar_style:
fonts: fonts:
bar: bar:
family: 'Fira Code Nerd Font' family: 'Fira Code Nerd Font'
size: '12px' size: '{{ waybar_bar_font_size | default("12px") }}'
tray: tray:
family: 'DejaVu sans' family: 'DejaVu sans'
size: '12px' size: '{{ waybar_tray_font_size | default("12px") }}'

View file

@ -1,17 +1,4 @@
--- ---
waybar_style: cpu_thermal_zone: 0
colors: waybar_bar_font_size: '14px'
bg: '#323232' waybar_tray_font_size: '14px'
fg: '#ddd'
hover: '#f268b3'
selected: '#1cd180'
ok: '#1cd180'
warning: '#f2b768'
critical: '#f268b3'
fonts:
bar:
family: 'Fira Code Nerd Font'
size: '14px'
tray:
family: 'DejaVu sans'
size: '14px'