Add eww and SSH
This commit is contained in:
parent
3fad5809b9
commit
7f324958a5
24 changed files with 309 additions and 16 deletions
15
programs/eww/config/modules/powerbar.yuck
Normal file
15
programs/eww/config/modules/powerbar.yuck
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
(defwidget powerbar []
|
||||
(box
|
||||
:orientation "vertical"
|
||||
:spacing 8
|
||||
:space-evenly false
|
||||
:style "color: #FAB387"
|
||||
(progress
|
||||
:orientation "v"
|
||||
:value {100 - power})
|
||||
"電"
|
||||
)
|
||||
)
|
||||
|
||||
(defpoll power :interval "1m"
|
||||
"cat /sys/class/power_supply/BAT1/capacity")
|
||||
Loading…
Add table
Add a link
Reference in a new issue