about summary refs log tree commit diff stats
path: root/home-manager/config/yambar/config/config.yml.diffrent
blob: 462a329bca44960623aead0efd6108418465d4be (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
hack: &hack Hack Nerd Font:pixelsize=13
bg_default: &bg_default {stack: [{background: {color: 81A1C1ff}}, {underline: {size: 4, color: D8DEE9ff}}]}
bar:
  height: 40
  location: top
  font: JuliaMono:pixelsize=10
  spacing: 2
  margin: 0
  layer: bottom
  foreground: eeeeeeff
  background: 2E3440dd

  left:
    - river:
        anchors:
          - base: &river_base
              left-margin: 10
              right-margin: 13 
              default: {string: {text: , font: *hack}}
              conditions:
                id == 1: {string: {text: ﳐ, font: *hack}}  
                id == 2: {string: {text: , font: *hack}}  
                id == 3: {string: {text: , font: *hack}}  
                id == 4: {string: {text: , font: *hack}}  
                id == 5: {string: {text: , font: *hack}}  
                id == 10: {string: {text: "scratchpad", font: *hack}}  
                id == 11: {string: {text: "work", font: *hack}}  

        content:
          map:
            on-click: 
              left: sh -c "riverctl set-focused-tags $((1 << ({id} - 1)))"
              right: sh -c "riverctl toggle-focused-tags $((1 << ({id} -1)))"
              middle: sh -c "riverctl toggle-view-tags $((1 << ({id} -1)))"
            conditions:
              state == urgent:
                map:
                  <<: *river_base
                  deco: {background: {color: D08770ff}}
              state == focused:
                map:
                  <<: *river_base
                  deco: *bg_default
              state == visible:
                map:
                  conditions:
                    ~occupied: {map: {<<: *river_base}}
                    occupied: {map: {<<: *river_base, deco: *bg_default}}
              state == unfocused:
                map:
                  <<: *river_base
              state == invisible:
                map:
                  conditions:
                    ~occupied: {empty: {}}
                    occupied: {map: {<<: *river_base, deco: {underline: {size: 3, color: ea6962ff}}}}