1
0

update eww config

This commit is contained in:
2025-02-07 17:55:47 +01:00
parent 746a5bf56b
commit 7154f22c51
3 changed files with 48 additions and 15 deletions

View File

@@ -38,42 +38,51 @@
(defvar dummy "")
(defwindow primary
:monitor "DP-0"
:monitor "eDP-1"
:windowtype "dock"
:wm-ignore false
:geometry (geometry :width "100%" :anchor "top center")
:reserve (struts :side "top" :distance "10%")
(primary_bar)
(primary_bar :monitor "eDP-1")
)
(defwindow secondary
:monitor "HDMI-0"
:monitor "DP-2-1"
:windowtype "dock"
:wm-ignore false
:geometry (geometry :width "100%" :anchor "top center")
:reserve (struts :side "top" :distance "10%")
(secondary_bar)
(secondary_bar :monitor "DP-2-1")
)
(defwidget primary_bar []
(defwindow third
:monitor "DP-2-2"
:windowtype "dock"
:wm-ignore false
:geometry (geometry :width "100%" :anchor "top center")
:reserve (struts :side "top" :distance "10%")
(secondary_bar :monitor "DP-2-2")
)
(defwidget primary_bar [monitor]
(centerbox
:class "bar bar-primary"
:orientation "horizontal"
:hexpand false
(left :monitor "DP-0")
(left :monitor monitor)
(center)
(right :monitor "DP-0")
(right :monitor monitor)
)
)
(defwidget secondary_bar []
(defwidget secondary_bar [monitor]
(centerbox
:class "bar bar-secondary"
:orientation "horizontal"
:hexpand false
(left :monitor "HDMI-0")
(left :monitor monitor)
(center)
(right :monitor "HDMI-0")
(right :monitor monitor)
)
)
@@ -161,6 +170,11 @@
:halign "end"
:spacing 20
:space-evenly false
(metric
:class "battery"
:label "${ EWW_BATTERY["BAT0"].status == "Discharging" ? "󱊣" : "󱊦" }"
:value { EWW_BATTERY["BAT0"].capacity }
:tooltip "${ EWW_BATTERY["BAT0"].capacity } % - ${ EWW_BATTERY["BAT0"].status }")
(metric
:class "disk"
:label "󰋊"