[eww] Show only root partition on vega
This commit is contained in:
@@ -17,6 +17,18 @@
|
||||
(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 / powi(2, 30)}
|
||||
:gauge-pct {EWW_DISK['/'].used_perc}
|
||||
:units " GB"
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
(defwidget vertical-statusbar []
|
||||
(box
|
||||
:orientation "v"
|
||||
@@ -32,7 +44,7 @@
|
||||
(system-monitor-perf-cpu)
|
||||
(system-monitor-perf-gpu)
|
||||
)
|
||||
(system-monitor-disks)
|
||||
(disks-vega)
|
||||
(system-monitor-net :interface "enp3s0")
|
||||
(system-monitor-audio)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user