nixos-config/modules/home-manager/ricing/hyprland/eww/config/yuck/_vars.yuck
2024-07-12 22:27:56 +09:00

49 lines
2.4 KiB
Plaintext

(defpoll hour :interval "1s" `date +%H`)
(defpoll minute :interval "1s" `date +%M`)
(defpoll day :interval "1s" `date "+%A"`)
(defpoll ampm :interval "1s" `date "+%p"`)
(defpoll date :interval "1s" `date "+%D"`)
(defpoll month_year :interval "24h"
"date '+%B %Y'")
(defpoll calendar_day :interval "10h"
"date '+%d'")
(defpoll calendar_year :interval "10h"
"date '+%Y'")
(defpoll thourtime :interval "40s" `date +"%a %I:%M %p"`)
;; SYSTEM VARS
(defpoll volume :interval "1s" `pamixer --get-volume`)
(defpoll brightness :interval "1s" `brightnessctl -m -d amdgpu_bl0 | awk -F, '{print substr($4, 0, length($4)-1)}' | tr -d '%'`)
(defvar pfp "/home/namish/.config/eww/assets/pfp.png")
(defvar fullpfp "/home/namish/.config/eww/assets/fullpfp.png")
(defpoll cputemp :interval "1s" "~/.config/eww/scripts/cpu.sh")
(defpoll wifisped :interval "1s" "~/.config/eww/scripts/wifi.sh --speed")
(defpoll battery :interval "1s" `~/.config/eww/scripts/bat.sh percent`)
(defpoll wifiConnected :interval "2s" `~/.config/eww/scripts/wifi.sh --icon`)
(defpoll song :interval "2s" "~/.config/eww/scripts/ms.sh --song")
(defpoll song_artist :interval "2s" "~/.config/eww/scripts/ms.sh --artist")
(defpoll current_status :interval "1s" "~/.config/eww/scripts/ms.sh --time")
(defpoll song_status :interval "1s" "~/.config/eww/scripts/ms.sh --status")
(defpoll cover_art :interval "2s" "~/.config/eww/scripts/ms.sh --cover")
(defpoll username :interval "48h" "whoami")
(defpoll hostname :interval "48h" "hostname")
(defpoll uptime :interval "1m" "uptime -p | sed -e 's/up //;s/ hours,/h/;s/ hour,/h/;s/ minutes/m/;s/ minute/m/'")
(defpoll apactive :interval '1s' "~/.config/eww/scripts/ap.sh --class")
(defpoll dndactive :interval '1s' "~/.config/eww/scripts/dnd.sh --class")
(defpoll wifiactive :interval '1s' "~/.config/eww/scripts/wifi.sh --class")
(defpoll btactive :interval '1s' "~/.config/eww/scripts/bl.sh --class")
(defpoll wallpaper :interval "1h" "source ~/.local/bin/upw && echo $WALLPAPER")
(defpoll weathericon :interval "2h" "~/.config/eww/scripts/weather.sh icon")
(defpoll weatherimage :interval "2h" "~/.config/eww/scripts/weather.sh image")
(defpoll current_temp :interval "2h" "~/.config/eww/scripts/weather.sh current_temp")
(defpoll current_desc :interval "2h" "~/.config/eww/scripts/weather.sh weather_desc")
(defpoll dunsthistory :interval "250ms" "dunstctl history")
(defpoll dunstcount :interval "250ms" "dunstctl count history")