72 lines
1.3 KiB
Plaintext
72 lines
1.3 KiB
Plaintext
(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" "⏻"
|
|
)
|
|
)
|
|
|