nix-config/modules/wm/hyprland/config/eww/eww_variables.yuck
2025-04-03 21:59:50 +02:00

27 lines
685 B
Text

(defvar hostname "")
(defpoll quote_text :interval "3600s" `fortune -n 90 -s`)
(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 TODAY :interval "1s" `date +'%d %b %y'`)
(defpoll distro :interval "12h" `nixos-version | sed -r 's/^(.....).*?\\((.*?)\\)/NixOS \\1/'`)
(defpoll music_current :interval "1s" "mpc current")
(defpoll ssid :interval "1s" "iwgetid -r || echo 'Disconnected'")
;;;; App list LISTEN VAR
(defpoll search_listen :interval "5m" "scripts/search_items.txt")