nix-config/modules/wm/hyprland/config/eww/eww.yuck
2025-03-31 23:50:46 +02:00

63 lines
1.9 KiB
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(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 })
)
)