This commit is contained in:
iris committed 2023-07-29 18:56:09 -04:00
1 parent 0d5900b551
commit a89b397a91
9 files changed
+96 -67

No files matched your search

+3 -3
View File
@@ -6,7 +6,7 @@
(defwidget vol []
(hover-metric :icon {vol < 33 ? "" : vol < 66 ? "" : "󰕾"}
:value vol
:class "green"
:class "purple"
:revealname "vol_reveal"
:reveal vol_reveal
:onchange "wpctl set-volume @DEFAULT_SINK@ {}% && eww update vol={}"))
@@ -15,7 +15,7 @@
(defwidget brightness []
(hover-metric :icon ""
:value bright
:class "yellow"
:class "magenta"
:revealname "bright_reveal"
:reveal bright_reveal
:onchange "light -S {}%"))
@@ -24,7 +24,7 @@
(defwidget net []
(hover-text :icon " "
:value net
:class "cyan"
:class "blue"
:revealname "net_reveal"
:reveal net_reveal))
+8 -8
View File
@@ -1,21 +1,21 @@
(defwidget cpu []
(circle :value {EWW_CPU.avg}
:icon ""
:class "cyan"))
:class "blue"))
(defwidget temp []
(circle :value {EWW_TEMPS.CORETEMP_PACKAGE_ID_0}
:icon ""
:class "magenta"))
:class "purple"))
(defwidget mem []
(circle :value {EWW_RAM.used_mem_perc}
:icon ""
:class "yellow"))
:class "magenta"))
(defwidget disk []
(circle :value {round((1 - (EWW_DISK["/"].free / EWW_DISK["/"].total)) * 100, 0)}
:icon ""
(circle :value "${round((1 - (EWW_DISK["/"].free / EWW_DISK["/"].total)) * 100, 0)}"
:icon ""
:class "red"))
(defpoll bat_stat :interval "30s" "cat /")
@@ -24,9 +24,9 @@
(circle :value {EWW_BATTERY.BAT0.capacity}
;; :icon "⏻"
:icon {
EWW_BATTERY.BAT0.status == "Charging" ? "󱐋"
EWW_BATTERY.BAT0.status == "Charging" ? "󰂄"
: EWW_BATTERY.BAT0.status == "Not charging" ? ""
: "󰁹"
: EWW_BATTERY.BAT0.capacity < 15 ? "󰂃" : "󰁹"
}
:class "green")))
:class "cyan")))
+2 -2
View File
@@ -3,9 +3,9 @@
;; (deflisten wslist1
;; "scripts/getwsss DP-")
(deflisten wslist0
"scripts/getwss 0")
"scripts/wmws 0")
(deflisten wslist1
"scripts/getwss 1")
"scripts/wmws 1")
(defwidget workspaces [monitor]
(box :class "workspaces"
(for entry in {monitor == 0 ? wslist0 : wslist1}