Initial bar for work PC
This commit is contained in:
parent
18e4ac1ec3
commit
a55b5ed3b8
1 changed files with 27 additions and 3 deletions
|
@ -188,13 +188,14 @@
|
||||||
(defwidget title []
|
(defwidget title []
|
||||||
(label :text {wm-info.title}))
|
(label :text {wm-info.title}))
|
||||||
|
|
||||||
(defwidget left []
|
(defwidget left [is-home]
|
||||||
(box :orientation "h"
|
(box :orientation "h"
|
||||||
:halign "start"
|
:halign "start"
|
||||||
:space-evenly false
|
:space-evenly false
|
||||||
:spacing 5
|
:spacing 5
|
||||||
(workspaces)
|
(workspaces)
|
||||||
(ha-now-playing)))
|
(ha-now-playing
|
||||||
|
:visible is-home)))
|
||||||
|
|
||||||
(defwidget right []
|
(defwidget right []
|
||||||
(box :orientation "h"
|
(box :orientation "h"
|
||||||
|
@ -216,7 +217,17 @@
|
||||||
:hexpand false
|
:hexpand false
|
||||||
:vexpand false
|
:vexpand false
|
||||||
(centerbox
|
(centerbox
|
||||||
(left)
|
(left :is-home true)
|
||||||
|
(title)
|
||||||
|
(end))))
|
||||||
|
|
||||||
|
(defwidget bar-work-left []
|
||||||
|
(box :class "eww_bar"
|
||||||
|
:orientation "h"
|
||||||
|
:hexpand false
|
||||||
|
:vexpand false
|
||||||
|
(centerbox
|
||||||
|
(left :is-home false)
|
||||||
(title)
|
(title)
|
||||||
(end))))
|
(end))))
|
||||||
|
|
||||||
|
@ -236,3 +247,16 @@
|
||||||
:vexpand false
|
:vexpand false
|
||||||
:exclusive true
|
:exclusive true
|
||||||
(bar))
|
(bar))
|
||||||
|
|
||||||
|
(defwindow bar-work
|
||||||
|
:geometry (geometry :x "0"
|
||||||
|
:y "0"
|
||||||
|
:width "100%"
|
||||||
|
:height "32px"
|
||||||
|
:anchor "top center")
|
||||||
|
:stacking "fg"
|
||||||
|
:monitor 0
|
||||||
|
:exclusive true
|
||||||
|
:hexpand false
|
||||||
|
:vexpand false
|
||||||
|
(bar-work-left))
|
||||||
|
|
Loading…
Reference in a new issue