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

+2 -2
View File
@@ -12,7 +12,7 @@
(defwidget bar-left []
(box :class "bar-left" :space-evenly false :halign "start"
(bat) (cpu) (temp) (mem) (disk)))
(bat) (sep) (cpu) (sep) (temp) (sep) (mem) (sep) (disk)))
(defwidget bar-center [monitor]
(box :class "bar-center" :space-evenly false
@@ -20,5 +20,5 @@
(defwidget bar-right []
(box :class "bar-right" :space-evenly false :halign "end"
(brightness) (vol) (net) (date) (time)))
(brightness) (vol) (net) (sep) (date) (time)))
+12 -9
View File
@@ -50,13 +50,16 @@
(box :class "text mod"
poll))
(defwidget circle [value ?icon class]
(box :class "mod"
(circular-progress :value value
:width 30
:class "circle-bar ${class}"
:thickness 4
:start-at 75
(label :text {icon ?: ""}
:class "circle ${class}"))))
(defwidget circle [value icon class]
(box :class "mod circle-progress"
(label :text icon
:class "${class}")
(circular-progress :value value
:width 25
:class "circle-bar ${class} bg"
:thickness 4
:start-at 75)))
(defwidget sep []
(label :text "" :class "sep"))
+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}