This commit is contained in:
Spangenberg
2023-11-08 22:32:18 +01:00
parent aa0f005523
commit 144f573fda
13 changed files with 188 additions and 4 deletions

71
eww/bar/eww.yuck Normal file
View File

@@ -0,0 +1,71 @@
(defpoll checkupdates :interval "60s" "scripts/systemupdates --check")
(defpoll checkupdatescount :interval "60s" "scripts/systemupdates --count")
(defpoll current-brightness :interval "1s" "brightnessctl -m -d intel_backlight | awk -F, '{print substr($4, 0, length($4)-1)}' | tr -d '%'")
(defwindow bar
:monitor 0
:stacking "fg"
:windowtype "dock"
:exclusive true
:geometry (geometry
:x "0"
:y "10"
:width "98%"
:height "3%"
:anchor "top center"
)
(bar)
)
(defwidget bar []
(box
:class "bar"
:orientatoin "h"
;; :space-evenly false
(box
:orientation "h"
:halign "start"
(launcher)
)
(box
:orientation "h"
:halign "end"
:hexpand "true"
;; :space-evenly "false"
(bright)
(power)
)
)
)
(defwidget launcher []
(box
:orientation "h"
(button
:class "launcher"
:tooltip "App Launcher"
:onclick "bash ~/dotfiles/scripts/applauncher.sh"
"󰣇"
)
)
)
(defwidget bright []
(box
:class "icons"
:orientation "h"
:space-evenly "false"
:tooltip current-brightness
"󰃠"
)
)
(defwidget power []
(button
:class "icons"
:tooltip "wlogout"
:onclick "bash ~/dotfiles/scripts/wlogout.sh" "⏻"
)
)