70 lines
1.4 KiB
Plaintext
70 lines
1.4 KiB
Plaintext
(defwidget vertical-statusbar-systray []
|
|
(systray
|
|
:class "systray"
|
|
:spacing 3
|
|
:orientation "h"
|
|
:space-evenly true
|
|
:icon-size 16
|
|
)
|
|
)
|
|
|
|
(deflisten workspaces-json-hdmi-a-1
|
|
:initial "[]"
|
|
`~/.config/eww/scripts/workspaces.sh HDMI-A-1`
|
|
)
|
|
|
|
(defwidget workspaces-vega []
|
|
(workspaces :workspaces-json workspaces-json-hdmi-a-1)
|
|
)
|
|
|
|
(defwidget disks-vega []
|
|
(system-monitor-group
|
|
:name "Disks"
|
|
(system-monitor-gauge
|
|
:name "Root"
|
|
:text-value {EWW_DISK['/'].free / 1000000000}
|
|
:gauge-pct {EWW_DISK['/'].used_perc}
|
|
:units " GB"
|
|
)
|
|
)
|
|
)
|
|
|
|
(defwidget vertical-statusbar []
|
|
(box
|
|
:orientation "v"
|
|
:halign "fill"
|
|
:spacing 8
|
|
:space-evenly false
|
|
(clock-large)
|
|
(workspaces-vega)
|
|
(vertical-statusbar-systray)
|
|
(system-monitor-group
|
|
:name "Performance"
|
|
:orientation "v"
|
|
(system-monitor-perf-cpu)
|
|
(system-monitor-perf-gpu)
|
|
)
|
|
(disks-vega)
|
|
(system-monitor-net :interface "enp3s0")
|
|
(system-monitor-audio)
|
|
)
|
|
)
|
|
|
|
(defwindow vertical-statusbar
|
|
:monitor '[ "<primary>", "LG ULTRAWIDE", "HDMI-A-1" ]'
|
|
;; Note that this geometry is crucial for setting the reserved space
|
|
;; properly. Changing the geometry may cause eww to no longer give the proper
|
|
;; reserved-space hints.
|
|
:geometry (geometry
|
|
:x "0%"
|
|
:y "0%"
|
|
:width "250px"
|
|
:height "100%"
|
|
:anchor "center left"
|
|
)
|
|
:stacking "fg"
|
|
:exclusive true
|
|
:focusable false
|
|
(vertical-statusbar)
|
|
)
|