Initial transfer to sway on work PC #2

Merged
erwin merged 23 commits from feature/sway-at-work into main 2023-09-29 11:52:47 +02:00
Showing only changes of commit a55b5ed3b8 - Show all commits

View file

@ -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))