chore: Add datetime
This commit is contained in:
parent
e0409a6619
commit
8150baf7fb
1 changed files with 17 additions and 2 deletions
|
@ -5,6 +5,9 @@
|
|||
(deflisten workspace-list :initial '[1]'
|
||||
`stdbuf -oL $HOME/.local/bin/scripts/eww-hyprland-workspace-list-listener`)
|
||||
|
||||
(deflisten datetime
|
||||
`stdbuf -oL $HOME/.local/bin/scripts/eww-datetime-listener`)
|
||||
|
||||
;; Windows
|
||||
(defwindow bar
|
||||
:monitor 0
|
||||
|
@ -23,10 +26,13 @@
|
|||
(workspaces))
|
||||
|
||||
(defwidget middle []
|
||||
(literal :content "test"))
|
||||
(label :text "test"))
|
||||
|
||||
(defwidget end []
|
||||
(literal :content "test"))
|
||||
(box :halign "end"
|
||||
:class "end"
|
||||
:space-evenly false
|
||||
(clock)))
|
||||
|
||||
(defwidget workspaces []
|
||||
(box :class "workspaces"
|
||||
|
@ -35,3 +41,12 @@
|
|||
(button :class {active-workspace == id ? "active" : ""}
|
||||
:onclick `hyprctl dispatch workspace ${id}`
|
||||
id))))
|
||||
|
||||
(defwidget clock []
|
||||
(pair :icon "a" :text {datetime.full})))
|
||||
|
||||
(defwidget pair [icon text]
|
||||
(box :width 70
|
||||
:space-evenly false
|
||||
(label :text icon)
|
||||
(label :text text)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue