✨ eww: add new tiles to control-center, new notification popup, new styles for a lot of widgets
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
(defwidget hardware [ ?cpu ?memory ?visible ]
|
||||
(eventbox :class "hardware-eventbox button"
|
||||
:onclick "sh ${EWW_CONFIG_DIR}/scripts/eww-window.sh toggle hardware-monitor"
|
||||
:visible { visible == "" || visible ? true : false }
|
||||
(box :class "hardware"
|
||||
:space-evenly false
|
||||
(box :class "cpu"
|
||||
:visible { cpu == "" || cpu ? true : false }
|
||||
(label :text " ${ round(EWW_CPU?.avg, 0) }%")
|
||||
)
|
||||
(box :class "memory"
|
||||
:visible { memory == "" || memory ? true : false }
|
||||
(label :text " ${ round(EWW_RAM?.used_mem_perc, 0) }%")
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
Reference in New Issue
Block a user