e5f5fec74e06b900f38b9b0b84783c021c6259f1Parent: a06a14e- feat
- ✨ eww
2 changed files +45 -0
- .config/eww/eww.css +8 -0
- .config/eww/eww.yuck +37 -0
.config/eww/eww.cssadded+8 -0
| @@ -0,0 +1,8 @@ | |||
| 1 | +* { | ||
| 2 | + all: unset; | ||
| 3 | +} | ||
| 4 | + | ||
| 5 | +.bar { | ||
| 6 | + background-color: black; | ||
| 7 | + color: white; | ||
| 8 | +} | ||
.config/eww/eww.yuckadded+37 -0
| @@ -0,0 +1,37 @@ | |||
| 1 | +(defvar time-visible false) | ||
| 2 | +(defpoll time :interval "1s" | ||
| 3 | + :initial "initial-value" | ||
| 4 | + :run-while time-visible | ||
| 5 | +`date +%x' | '%H:%M:%S`) | ||
| 6 | +(defvar byte_transform 1073741824) ;; 1024*1024*1024 | ||
| 7 | + | ||
| 8 | +(defwidget bar [] | ||
| 9 | + (box :orientation "h" | ||
| 10 | + :class "bar" | ||
| 11 | + :spacing 0 | ||
| 12 | + :valign "center" | ||
| 13 | + (label :text time) | ||
| 14 | + (label :text {round(EWW_CPU.avg, 2)}) | ||
| 15 | + (label :text {round(EWW_RAM.used_mem/byte_transform, 2)}) | ||
| 16 | + (systray :icon-size 20 | ||
| 17 | + :space-evenly false | ||
| 18 | + :spacing 0 | ||
| 19 | + ) | ||
| 20 | + (label :text "${EWW_BATTERY.BATT.capacity} | ${EWW_BATTERY.BATT.status}") | ||
| 21 | +)) | ||
| 22 | + | ||
| 23 | +(defwindow main | ||
| 24 | + :monitor 0 | ||
| 25 | + :geometry (geometry :x "0px" | ||
| 26 | + :y "0px" | ||
| 27 | + :width "99.9%" | ||
| 28 | + :height "30px" | ||
| 29 | + :anchor "top center") | ||
| 30 | + :exclusive true | ||
| 31 | + :stacking "fg" | ||
| 32 | + :reserve (struts :distance "40px" :side "top") | ||
| 33 | + :windowtype "dock" | ||
| 34 | + :wm-ignore true | ||
| 35 | +(bar)) | ||
| 36 | + | ||
| 37 | + | ||