aboutsummaryrefslogtreecommitdiff
path: root/.config/yambar
diff options
context:
space:
mode:
authorJustine Smithies <justine@smithies.me.uk>2023-10-28 09:51:45 +0100
committerJustine Smithies <justine@smithies.me.uk>2023-10-28 09:51:45 +0100
commit7cb066dca318cfe505256f6220eded11c0552621 (patch)
tree35af758ce75a40aa6e3d6b7294fd334aed89b481 /.config/yambar
parent9bcdf8e2cb8fc4bfb160772ff7e924162269a39f (diff)
Use variables to compact Yambar config
Diffstat (limited to '.config/yambar')
-rw-r--r--.config/yambar/config.yml28
1 files changed, 12 insertions, 16 deletions
diff --git a/.config/yambar/config.yml b/.config/yambar/config.yml
index 24bc750..9a291eb 100644
--- a/.config/yambar/config.yml
+++ b/.config/yambar/config.yml
@@ -1,6 +1,7 @@
nerdfont: &nerdfont Symbols Nerd Font Mono:pixelsize=12
gomono: &gomono GoMono Nerd Font Mono:pixelsize=12
-bg_default: &bg_default {stack: [{background: {color: 00000000}}, {underline: {size: 3, color: 98971aff}}]}
+focused: &focused {stack: [{background: {color: 00000000}}, {underline: {size: 3, color: 98971aff}}]}
+col-inv: &col-inv {foreground: a89984ff}
bar:
font: *gomono
@@ -33,12 +34,7 @@ bar:
map:
conditions:
state == focused:
- string:
- <<: *river_base
- deco:
- stack:
- - background: { color: 00000000 }
- - underline: { size: 3, color: 98971aff }
+ { string: { <<: [*river_base, deco: *focused] }}
state == unfocused:
string:
<<: *river_base
@@ -58,15 +54,15 @@ bar:
empty: {}
conditions:
# 9 default tags that are shown unless occupied
- id == 1: { string: { <<: *river_base, foreground: a89984ff }}
- id == 2: { string: { <<: *river_base , foreground: a89984ff }}
- id == 3: { string: { <<: *river_base , foreground: a89984ff }}
- id == 4: { string: { <<: *river_base , foreground: a89984ff }}
- id == 5: { string: { <<: *river_base , foreground: a89984ff }}
- id == 6: { string: { <<: *river_base , foreground: a89984ff }}
- id == 7: { string: { <<: *river_base , foreground: a89984ff }}
- id == 8: { string: { <<: *river_base , foreground: a89984ff }}
- id == 9: { string: { <<: *river_base , foreground: a89984ff }}
+ id == 1: { string: { <<: [*river_base, *col-inv] }}
+ id == 2: { string: { <<: [*river_base , *col-inv] }}
+ id == 3: { string: { <<: [*river_base , *col-inv] }}
+ id == 4: { string: { <<: [*river_base , *col-inv] }}
+ id == 5: { string: { <<: [*river_base , *col-inv] }}
+ id == 6: { string: { <<: [*river_base , *col-inv] }}
+ id == 7: { string: { <<: [*river_base , *col-inv] }}
+ id == 8: { string: { <<: [*river_base , *col-inv] }}
+ id == 9: { string: { <<: [*river_base , *col-inv] }}
center:
- script:
path: ~/.config/yambar/scripts/dater.sh