"profiles"

This commit is contained in:
iris committed 2024-08-02 12:16:08 -04:00
1 parent a89b397a91
commit a4eacee260
4 files changed
+15 -2

No files matched your search

+1
View File
@@ -0,0 +1 @@
bar/bar.yuck
+1 -1
View File
@@ -12,7 +12,7 @@
(defwidget bar-left [] (defwidget bar-left []
(box :class "bar-left" :space-evenly false :halign "start" (box :class "bar-left" :space-evenly false :halign "start"
(bat) (sep) (cpu) (sep) (temp) (sep) (mem) (sep) (disk))) (cpu) (sep) (temp) (sep) (mem) (sep) (disk)))
(defwidget bar-center [monitor] (defwidget bar-center [monitor]
(box :class "bar-center" :space-evenly false (box :class "bar-center" :space-evenly false
+13 -1
View File
@@ -15,9 +15,21 @@
(defwidget disk [] (defwidget disk []
(circle :value "${round((1 - (EWW_DISK["/"].free / EWW_DISK["/"].total)) * 100, 0)}" (circle :value "${round((1 - (EWW_DISK["/"].free / EWW_DISK["/"].total)) * 100, 0)}"
:icon "" :icon "󰋊"
:class "red")) :class "red"))
(defpoll gpu :interval "1s" "nvidia-smi --query-gpu=utilization.gpu --format=csv | awk 'NR==2' | cut -c 1,2 | xargs")
(defwidget gpu []
(circle :value {gpu}
:icon "󱄄"
:class "yellow"))
(defpoll gpu_mem :interval "1s" "nvidia-smi --query-gpu=utilization.memory --format=csv | awk 'NR==2' | cut -c 1,2 | xargs")
(defwidget gpu_mem []
(circle :value {gpu_mem}
:icon "󰥶"
:class "green"))
(defpoll bat_stat :interval "30s" "cat /") (defpoll bat_stat :interval "30s" "cat /")
(defwidget bat [] (defwidget bat []
(box (box
BIN
View File
Binary file not shown.