From 9f20c1f313e20102dd83adeaf091284be1fd82d0 Mon Sep 17 00:00:00 2001 From: "eric.marin" Date: Wed, 11 Sep 2024 14:49:39 +0200 Subject: config --- eww/eww-bar.png | Bin 0 -> 6286 bytes eww/eww.scss | 1 + eww/eww.yuck | 27 +++++++++++++++++++++++++++ eww/scripts/getvol | 12 ++++++++++++ eww/wallpaper | Bin 0 -> 19754 bytes 5 files changed, 40 insertions(+) create mode 100644 eww/eww-bar.png create mode 100644 eww/eww.scss create mode 100644 eww/eww.yuck create mode 100755 eww/scripts/getvol create mode 100644 eww/wallpaper (limited to 'eww') diff --git a/eww/eww-bar.png b/eww/eww-bar.png new file mode 100644 index 0000000..e6de6a8 Binary files /dev/null and b/eww/eww-bar.png differ diff --git a/eww/eww.scss b/eww/eww.scss new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/eww/eww.scss @@ -0,0 +1 @@ + diff --git a/eww/eww.yuck b/eww/eww.yuck new file mode 100644 index 0000000..4435928 --- /dev/null +++ b/eww/eww.yuck @@ -0,0 +1,27 @@ +(defwidget labeled-circular-progress [text value] + (overlay + (circular-progress :start-at 75 :thickness 5 + :value value) + text)) + +(defwidget stats [] + (box :orientation "vertical" + (box :orientation "horizontal" + (labeled-circular-progress :text "CPU" :value {EWW_CPU.avg}) + (labeled-circular-progress :text "RAM" :value {EWW_RAM.used_mem_perc})) + (box :orientation "horizontal" + (labeled-circular-progress :text "TMP" :value {EWW_TEMPS.THERMAL_ZONE0.temperature}) + (labeled-circular-progress :text "BAT" :value {EWW_BATTERY.BAT0.capacity})) + (box :orientation "horizontal" + (labeled-circular-progress :text "SDD" :value {EWW_DISK["/"].used_perc}) + (labeled-circular-progress :text "NET" :value {EWW_NET.WLO1.up})))) + +(defwindow test + :monitor 0 + :geometry (geometry :width "25%" :height "25%" + :anchor "center") + :stacking "fg" + :windowtype "normal" + :wm-ignore false + (stats)) + diff --git a/eww/scripts/getvol b/eww/scripts/getvol new file mode 100755 index 0000000..4e4275d --- /dev/null +++ b/eww/scripts/getvol @@ -0,0 +1,12 @@ +#!/bin/sh + +if command -v pamixer &>/dev/null; then + if [ true == $(pamixer --get-mute) ]; then + echo 0 + exit + else + pamixer --get-volume + fi +else + amixer -D pulse sget Master | awk -F '[^0-9]+' '/Left:/{print $3}' +fi diff --git a/eww/wallpaper b/eww/wallpaper new file mode 100644 index 0000000..edb31e2 Binary files /dev/null and b/eww/wallpaper differ -- cgit v1.2.3