punktdateien/eww/eww.yuck

134 lines
2.9 KiB
Text
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(defwindow sysinfo
:monitor 0
:geometry (geometry
:x "0px"
:y "100px"
:size-comment "why one pixel you ask? because the window will scale automatically and because it's centered anyway we don't need to care about sizing"
:width "1px"
:height "1px"
:anchor "bottom center"
)
:stacking "bottom"
:exclusive false
:focusable false
:reserve (struts
:distance "40px"
:side "top"
)
(box
:orientation "vertical"
:spacing 0
:space-evenly false
(label
:text "============= system information ============="
)
(box
:orientation "horizontal"
:space-evenly true
(label
:xalign 0
:text "| cpu"
)
(label
:xalign 2
:text "${round(jq(EWW_CPU, '[.cores[].usage] | add / length'),2)}% |"
)
)
(box
:orientation "horizontal"
:space-evenly true
(label
:xalign 0
:text "| mem"
)
(label
:xalign 2
:text "${round(EWW_RAM.used_mem/1073741824, 2)} GiB/${round(EWW_RAM.total_mem/1073741824, 2)} GiB |"
)
)
(box
:orientation "horizontal"
:space-evenly true
(label
:xalign 0
:text "| disk /"
)
(label
:xalign 2
:text "${diskspace_root} |"
)
)
(box
:orientation "horizontal"
:space-evenly true
(label
:xalign 0
:text "| disk /home"
)
(label
:xalign 2
:text "${diskspace_home} |"
)
)
(box
:orientation "horizontal"
:space-evenly true
(label
:xalign 0
:text "| net"
)
(label
:xalign 2
:text "${round(EWW_NET.enp34s0.NET_UP / 1048576, 2)} MiB | ${round(EWW_NET.enp34s0.NET_DOWN / 1048576, 2)} MiB |"
)
)
(label
:text "=============================================="
)
)
)
(defwidget music_info []
(box
:spacing 0
:space-evenly false
(image
:path "/home/jeremystartm/.config/eww/icons/musical-note.svg"
:image-width 25
:image-height 25
)
(label
:text "${music}"
)
)
)
(defwidget music_progress []
(progress
:value "${music-progress}"
)
)
(defpoll music
:interval "1s"
"bash /home/jeremystartm/.config/eww/scripts/get-music.sh"
)
(defpoll music-progress
:interval "0.5s"
"bash /home/jeremystartm/.config/eww/scripts/get-music-progress.sh"
)
(defpoll volume :interval "1s"
"pamixer --get-volume-human"
)
(defpoll time :interval "1s"
"date '+%d.%m.%Y | %H:%M:%S'"
)
(defpoll diskspace_root :interval "10s"
"bash /home/jeremystartm/.config/eww/scripts/get-disk-space-root.sh"
)
(defpoll diskspace_home :interval "10s"
"bash /home/jeremystartm/.config/eww/scripts/get-disk-space-home.sh"
)
(deflisten window_title
:initial
"not working :("
"bash /home/jeremystartm/.config/eww/scripts/get-window-title.sh"
)