mirror of
https://forge.katzen.cafe/schrottkatze/nix-configs.git
synced 2024-11-06 07:36:23 +01:00
51 lines
1.1 KiB
Plaintext
51 lines
1.1 KiB
Plaintext
(include "bottomBar/workspaces.yuck")
|
|
(include "bottomBar/traveldings.yuck")
|
|
|
|
(defwindow bottomBar
|
|
:monitor 0
|
|
:stacking "fg"
|
|
:wm-ignore true
|
|
:exclusive true
|
|
:geometry (geometry
|
|
:width "100%"
|
|
:height "32px"
|
|
:anchor "bottom center")
|
|
(bottomBar))
|
|
|
|
(defwidget bottomBar []
|
|
(overlay
|
|
:class "bottomBar"
|
|
(centerbox
|
|
(box
|
|
:halign "start"
|
|
(workspaceWidget)
|
|
)
|
|
(box
|
|
:halign "center"
|
|
(traveldings)
|
|
)
|
|
(box
|
|
:halign "end"
|
|
(label :text "${iceData.speed}km/h")
|
|
)
|
|
)
|
|
(box
|
|
:class "lesbianFlag"
|
|
:height 1
|
|
( flagEl :flipped true :color "#D52D00")
|
|
( flagEl :flipped true :color "#EF7627")
|
|
( flagEl :flipped true :color "#FF9A56")
|
|
( flagEl :flipped true :color "#FFFFFF")
|
|
( flagEl :flipped true :color "#D162A4")
|
|
( flagEl :flipped true :color "#B55690")
|
|
( flagEl :flipped true :color "#A30262")
|
|
)
|
|
)
|
|
)
|
|
|
|
(defpoll iceData
|
|
:interval "2s"
|
|
:initial ""
|
|
`(iw dev wlp4s0 link | grep "WIFIonICE" > /dev/null) && curl https://iceportal.de/api1/rs/status`
|
|
)
|