Switch to a predefined eww config

This commit is contained in:
KoenDR06 2025-04-01 12:44:38 +02:00
parent ea0c454902
commit 92f52c0c42
2 changed files with 123 additions and 79 deletions

View file

@ -1,63 +1,2 @@
(include "/home/horseman/.config/eww/vars.yuck")
(defwindow main
:monitor 0
:geometry (geometry
:x "0%"
:y "0%"
:width "50%"
; :height "50%"
:anchor "center")
:stacking "fg"
:exclusive false
:focusable false
(box :class "main-box"
:orientation "vertical"
(topbar)
(runner)
)
)
(defwidget runner []
(box :class "runner"
:orientation "vertical"
(input :class "runner-input"
:value "baaa"
:onchange "eww toggle main"
)
)
)
(defwidget topbar []
(centerbox :class "topbar"
(label :text {time} :class "time")
(workspaces)
(utils)
)
)
(defwidget utils []
(box :class "utils"
:space-evenly false
{battery}
(button :class "util-button"
:onclick "eww close main"
"×")
)
)
(defwidget workspaces []
(box :class "workspaces"
;(button :class "workspace" :onclick "hyprctl dispatch workspace 1" { workspace == 1 ? "◆" : windows-1 })
;(button :class "workspace" :onclick "hyprctl dispatch workspace 2" { workspace == 2 ? "◆" : windows-2 })
;(button :class "workspace" :onclick "hyprctl dispatch workspace 3" { workspace == 3 ? "◆" : windows-3 })
;(button :class "workspace" :onclick "hyprctl dispatch workspace 4" { workspace == 4 ? "◆" : windows-4 })
;(button :class "workspace" :onclick "hyprctl dispatch workspace 5" { workspace == 5 ? "◆" : windows-5 })
;(button :class "workspace" :onclick "hyprctl dispatch workspace 6" { workspace == 6 ? "◆" : windows-6 })
;(button :class "workspace" :onclick "hyprctl dispatch workspace 7" { workspace == 7 ? "◆" : windows-7 })
;(button :class "workspace" :onclick "hyprctl dispatch workspace 8" { workspace == 8 ? "◆" : windows-8 })
;(button :class "workspace" :onclick "hyprctl dispatch workspace 9" { workspace == 9 ? "◆" : windows-9 })
;(button :class "workspace" :onclick "hyprctl dispatch workspace 10" { workspace == 10 ? "◆" : windows-10 })
)
)
;;;; Including Window script, which calls everyone else
(include "/home/horseman/.config/eww/eww_windows.yuck")