eww timings
This commit is contained in:
@@ -69,8 +69,8 @@
|
||||
|
||||
; --- Quick Actions ---
|
||||
|
||||
(defvar power-save false)
|
||||
(defvar night-light false)
|
||||
(defpoll power-save :interval "5s" :initial "false" "scripts/power-save status")
|
||||
(defpoll night-light :interval "5s" :initial "false" "scripts/nightlight status")
|
||||
|
||||
(defwidget quick-btn [icon label onclick active]
|
||||
(button :class "quick-btn ${active ? 'quick-btn-active' : ''}"
|
||||
@@ -85,8 +85,8 @@
|
||||
(box :orientation "v" :space-evenly false :class "quick-grid" :spacing 4
|
||||
(box :orientation "h" :space-evenly true
|
||||
(quick-btn :icon "" :label "Wallpaper" :onclick "scripts/wallpaper" :active false)
|
||||
(quick-btn :icon "" :label "Power Save" :onclick "eww update power-save=$(scripts/power-save)" :active {power-save})
|
||||
(quick-btn :icon "" :label "Night Light" :onclick "eww update night-light=$(scripts/nightlight)" :active {night-light}))
|
||||
(quick-btn :icon "" :label "Power Save" :onclick "scripts/power-save" :active {power-save})
|
||||
(quick-btn :icon "" :label "Night Light" :onclick "scripts/nightlight" :active {night-light}))
|
||||
(box :orientation "h" :space-evenly true
|
||||
(quick-btn :icon "" :label "Screenshot" :onclick "scripts/screenshot" :active false)
|
||||
(quick-btn :icon "" :label "Lock" :onclick "scripts/lock" :active false)
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
|
||||
(defpoll swap :interval "5s" "scripts/sys/swap")
|
||||
(defpoll swap :interval "30s" "scripts/sys/swap")
|
||||
|
||||
(defpoll cpu-freq-min :interval "60s"
|
||||
"awk '{print $1/1000}' /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq")
|
||||
(defpoll cpu-freq-max :interval "60s"
|
||||
"awk '{print $1/1000}' /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq")
|
||||
(defpoll cpu-temp :interval "2s"
|
||||
(defpoll cpu-temp :interval "4s"
|
||||
"scripts/sys/cputemp")
|
||||
(defpoll cpu-freq-avg :interval "2s"
|
||||
"awk '{sum+=$1; count++} END {printf \"%.1f\", sum/count/1000000}' /sys/devices/system/cpu/cpu*/cpufreq/scaling_cur_freq")
|
||||
|
||||
Reference in New Issue
Block a user