adding gpu to eww
This commit is contained in:
parent
27ffac56bc
commit
df37a2b214
2 changed files with 31 additions and 0 deletions
|
@ -262,6 +262,20 @@ tooltip label {
|
||||||
padding-top: 3px;
|
padding-top: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.icongpu {
|
||||||
|
color: $base0E;
|
||||||
|
// margin: 2px 10px 0px 8px;
|
||||||
|
padding-top: 3px;
|
||||||
|
padding-left: 10px;
|
||||||
|
padding-right: 8px;
|
||||||
|
// padding-right: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.gpu_label {
|
||||||
|
color: $base0E;
|
||||||
|
padding-top: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
// Volume
|
// Volume
|
||||||
.iconvol {
|
.iconvol {
|
||||||
color: $base08;
|
color: $base08;
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
(defpoll WLAN_ICON :interval "1m" "scripts/wifi --ICON")
|
(defpoll WLAN_ICON :interval "1m" "scripts/wifi --ICON")
|
||||||
(defpoll HOST :interval "1h" "hostname")
|
(defpoll HOST :interval "1h" "hostname")
|
||||||
(defpoll DISK :interval "1m" "disk")
|
(defpoll DISK :interval "1m" "disk")
|
||||||
|
(defpoll gpu :interval "1s" "gpu")
|
||||||
;; (defpoll nextcloud :interval "2s" "scripts/nextcloud.sh")
|
;; (defpoll nextcloud :interval "2s" "scripts/nextcloud.sh")
|
||||||
(deflisten volume_percent :interval "0.2s" "tail -F /tmp/vol")
|
(deflisten volume_percent :interval "0.2s" "tail -F /tmp/vol")
|
||||||
(deflisten appname "scripts/appname")
|
(deflisten appname "scripts/appname")
|
||||||
|
@ -193,6 +194,21 @@
|
||||||
:text "${round(EWW_CPU.avg, 0)}%"
|
:text "${round(EWW_CPU.avg, 0)}%"
|
||||||
:class "cpu_label")))
|
:class "cpu_label")))
|
||||||
|
|
||||||
|
(defwidget gpu []
|
||||||
|
(box
|
||||||
|
:class "gpu_module"
|
||||||
|
:vexpand "false"
|
||||||
|
:hexpand "false"
|
||||||
|
:space-evenly false
|
||||||
|
(button
|
||||||
|
:onclick "scripts/pop system"
|
||||||
|
:class "icongpu"
|
||||||
|
:tooltip "using ${gpu} of gpu"
|
||||||
|
"")
|
||||||
|
(label
|
||||||
|
:text "${gpu}"
|
||||||
|
:class "gpu_label")))
|
||||||
|
|
||||||
(defwidget mem []
|
(defwidget mem []
|
||||||
(box
|
(box
|
||||||
:class "mem_module"
|
:class "mem_module"
|
||||||
|
@ -291,6 +307,7 @@
|
||||||
:class "sysmodules"
|
:class "sysmodules"
|
||||||
(disk)
|
(disk)
|
||||||
(cpu)
|
(cpu)
|
||||||
|
(gpu)
|
||||||
(mem)
|
(mem)
|
||||||
;; {right_modules.width > 1 ? null : (bright)}
|
;; {right_modules.width > 1 ? null : (bright)}
|
||||||
(bright)
|
(bright)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue