aboutsummaryrefslogtreecommitdiff
path: root/roles/home/desktop/eww/windows/net.yuck
diff options
context:
space:
mode:
Diffstat (limited to 'roles/home/desktop/eww/windows/net.yuck')
-rw-r--r--roles/home/desktop/eww/windows/net.yuck38
1 files changed, 38 insertions, 0 deletions
diff --git a/roles/home/desktop/eww/windows/net.yuck b/roles/home/desktop/eww/windows/net.yuck
new file mode 100644
index 0000000..b1e9792
--- /dev/null
+++ b/roles/home/desktop/eww/windows/net.yuck
@@ -0,0 +1,38 @@
+(box :class "panel"
+ :orientation "v"
+ :spacing 8
+ :space-evenly true
+ :height {100+16}
+ :width {(100+8)*3+8}
+
+ (graph
+ :value {net.rx}
+ :thickness 2
+ :time-range "30s"
+ :min 0
+ :max 100
+ :dynamic true
+ :line-style "round"
+ )
+
+ {"Download: " + round(net.rx/1024/1024, 2) + " MiB/s (peak: " + round(net.rx_peak/1024/1024, 2) + " MiB/s)"}
+
+ (graph
+ :value {net.tx}
+ :thickness 2
+ :time-range "30s"
+ :min 0
+ :max 100
+ :dynamic true
+ :line-style "round"
+ )
+
+ {"Upload: " + round(net.tx/1024/1024, 2) + " MiB/s (peak: " + round(net.tx_peak/1024/1024, 2) + " MiB/s)"}
+ )
+
+
+
+
+(deflisten net
+ `/home/c/net.sh`
+) \ No newline at end of file