updating a lot of hyprland config pieces

This commit is contained in:
Chris Cochrun 2022-12-21 09:13:28 -06:00
parent 28645f7175
commit d9cf8e32a7
9 changed files with 245 additions and 172 deletions

37
eww/battery.yuck Normal file
View file

@ -0,0 +1,37 @@
(defwindow battery
:geometry (geometry :x "0px"
:y "40px"
:width "200px"
:height "60px"
:anchor "bottom center")
:stacking "fg"
:monitor "0"
(battery))
(defwidget battery []
(box
:class "battery-container"
:orientation "h"
:vexpand "false"
:hexpand "false"
:space-evenly "false"
:spacing 5
(button
:class "battery-icon"
:onclick "" "")
(box
:orientation "v"
:space-evenly "false"
:vexpand "false"
:hexpand "false"
:spacing 5
(label
:class "battery-label"
:halign "start"
:text "Battery is at ${round(EWW_BATTERY['BAT1'].capacity, 0)}%, plug it in you dope.")
(scale
:class "battery-value"
:value {EWW_BATTERY["BAT1"].capacity}
:orientation "h"
:max 100
:min 0))))