aboutsummaryrefslogtreecommitdiff
path: root/home/rices/schrottkatze/eww/configDir/topBar/topBar.yuck
blob: 4aee71f1e0e4cca90a4099bff871e06b7fabc26f (plain)
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
(include "topBar/time.yuck")
(include "topBar/sysinfo.yuck")
(include "util.yuck")

(defwindow topBar
  :monitor 0
  :stacking "fg"
  :wm-ignore true
  :exclusive true
  :geometry (geometry
              :width "100%"
              :height "33px"
              :anchor "top center")
  (topBar))

(defwidget topBar []
  (overlay
    :class "topBar"
    (transform
      :translate-y "-1.5px"
      (centerbox
        (box
          :halign "start"
          :spacing 12
          :space-evenly false
          (label :text " ")
          (cpu)
          (sep)
          (mem)
          (label :markup bat)
        )
        (box
          :halign "center"
          (systray
            :icon-size 18
            :spacing 3
          )
        )
        (box
          :halign "end"
          (time)
        )
      )
    )
    (box
      :class "transFlag"
      :height 1
      ( flagEl :flipped false :color "#5BCEFA")
      ( flagEl :flipped false :color "#F5A9B8")
      ( flagEl :flipped false :color "#FFFFFF")
      ( flagEl :flipped false :color "#F5A9B8")
      ( flagEl :flipped false :color "#5BCEFA")
    )
  )
)