nix-config/modules/wm/hyprland/config/eww/eww_variables.yuck
2025-04-25 14:02:28 +02:00

50 lines
899 B
Text

(defvar hostname "")
(defpoll quote_text :interval "3600s" `hyprctl splash`)
(defpoll gpu_load :interval "1s" `gpustat --json | jq '.gpus[]."utilization.gpu"'`)
(defpoll host
:initial-value ""
:interval "1h"
`echo $(whoami)@$(hostname)`
)
(defpoll time
:interval "1s"
:initial-value ""
`date +'%H:%M:%S'`
)
(defpoll workspace
:interval "1s"
:initial-value ""
`hyprctl activeworkspace -j | jq '.name' | sed -e 's/"//g'`
)
(defpoll clients
:interval "1s"
:initial-value ""
`hyprctl clients -j | jq '.[].address' | wc -l`
)
(defpoll TODAY :interval "1s" `date +'%d %b %y'`)
(defpoll distro :interval "12h" `nixos-version | sed -r 's/^(.....).*?\\((.*?)\\)/NixOS \\1/'`)
(defpoll sound
:interval ".25s"
:initial-value "images/sound-lo.svg"
`./scripts/volume.sh`
)
(defpoll wifi
:interval "1s"
:initial-value "images/ethernet.svg"
`./scripts/wifi.sh`
)