feat: Add full and short date toggle
This commit is contained in:
parent
a5c3fb6540
commit
c11a8264ec
1 changed files with 31 additions and 27 deletions
|
@ -1,3 +1,6 @@
|
|||
;; Variables
|
||||
(defvar dtfull true)
|
||||
|
||||
;; Listeners
|
||||
(deflisten active-workspace
|
||||
`stdbuf -oL $HOME/.local/bin/scripts/eww-hyprland-active-workspace-listener`)
|
||||
|
@ -43,7 +46,8 @@
|
|||
id))))
|
||||
|
||||
(defwidget clock []
|
||||
(pair :icon "a" :text {datetime.full}))
|
||||
(eventbox :onclick `eww update dtfull=${!dtfull}`
|
||||
(label :text {dtfull ? datetime.full : datetime.date})))
|
||||
|
||||
(defwidget pair [icon text]
|
||||
(box :width 70
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue