changes to hyprland and eww
This commit is contained in:
parent
1638ad4031
commit
74ba9d43a7
4 changed files with 52 additions and 104 deletions
|
|
@ -1,35 +1,14 @@
|
|||
(defwindow main
|
||||
:monitor 0
|
||||
:geometry (geometry :x "0%"
|
||||
:y "0%"
|
||||
:width "50%"
|
||||
:height "50%"
|
||||
:anchor "center")
|
||||
:stacking "fg"
|
||||
:exclusive false
|
||||
:focusable false
|
||||
(topbar)
|
||||
)
|
||||
|
||||
(defwidget topbar []
|
||||
(box :class "topbar"
|
||||
(clock)
|
||||
(workspaces)
|
||||
)
|
||||
)
|
||||
|
||||
(defwidget clock []
|
||||
(box :class "clock"
|
||||
{formattime(EWW_TIME, "%b %m %H:%M:%S")}
|
||||
)
|
||||
)
|
||||
|
||||
(defwidget workspaces []
|
||||
(box :class "workspaces"
|
||||
(button :class "workspace-button" "◇")
|
||||
(button :class "workspace-button" "◆")
|
||||
(button :class "workspace-button" "◇")
|
||||
(button :class "workspace-button" "◇")
|
||||
(button :class "workspace-button" "◇")
|
||||
)
|
||||
:monitor 0
|
||||
:geometry (geometry
|
||||
:x "0%"
|
||||
:y "0%"
|
||||
:width "50%"
|
||||
:height "50%"
|
||||
:anchor "center")
|
||||
:stacking "fg"
|
||||
:exclusive false
|
||||
:focusable false
|
||||
|
||||
(box {workspace})
|
||||
)
|
||||
|
|
|
|||
12
modules/wm/hyprland/config/eww/vars.yuck
Normal file
12
modules/wm/hyprland/config/eww/vars.yuck
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
(defpoll workspace
|
||||
:interval '0.1s'
|
||||
:initial-value ""
|
||||
"hyprctl -j activeworkspace | jq '.id'"
|
||||
)
|
||||
|
||||
(defpoll time
|
||||
:interval "1s"
|
||||
:initial-value ""
|
||||
"date +'%H:%M:%S'"
|
||||
)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue