mirror of
https://forge.katzen.cafe/schrottkatze/nix-configs.git
synced 2024-11-05 15:16:23 +01:00
do more bar things
This commit is contained in:
parent
ac3df09b6b
commit
6aab08ec9b
|
@ -0,0 +1,41 @@
|
|||
(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"
|
||||
(label :text "left")
|
||||
)
|
||||
(box
|
||||
:halign "center"
|
||||
(label :text "mid")
|
||||
)
|
||||
(box
|
||||
:halign "end"
|
||||
(label :text "right")
|
||||
)
|
||||
)
|
||||
(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")
|
||||
)
|
||||
)
|
||||
)
|
|
@ -1,4 +1,4 @@
|
|||
.topbar {
|
||||
.topBar {
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
(include "topBar/topBar.yuck")
|
||||
(include "bottomBar/bottomBar.yuck")
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
def main [] {
|
||||
mut workspaces = waymsg -rt get_workspaces | from json | select name focused urgent;
|
||||
}
|
|
@ -5,7 +5,6 @@
|
|||
(defwindow topBar
|
||||
:monitor 0
|
||||
:stacking "fg"
|
||||
:windowtype "normal"
|
||||
:wm-ignore true
|
||||
:exclusive true
|
||||
:geometry (geometry
|
||||
|
@ -46,11 +45,11 @@
|
|||
(box
|
||||
:class "transFlag"
|
||||
:height 1
|
||||
( flagEl :color "#5BCEFA")
|
||||
( flagEl :color "#F5A9B8")
|
||||
( flagEl :color "#FFFFFF")
|
||||
( flagEl :color "#F5A9B8")
|
||||
( flagEl :color "#5BCEFA")
|
||||
( 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")
|
||||
)
|
||||
)
|
||||
)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
(defwidget flagEl [color]
|
||||
(defwidget flagEl [color ?flipped]
|
||||
(box
|
||||
:style "border-bottom: 3px solid ${color}"
|
||||
:style "border-${flipped ? "top" : "bottom"}: 3px solid ${color}"
|
||||
:halign "fill"
|
||||
)
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue