feat: make animation duration a var

This commit is contained in:
matt1432 2023-08-19 00:54:04 -04:00
parent cb0a2b8987
commit 269c9e1953
4 changed files with 8 additions and 6 deletions

View file

@ -59,5 +59,5 @@
(revealer
:transition "crossfade"
:reveal date-visible
:duration "550ms"
:duration anim_duration
(date)))

View file

@ -49,7 +49,7 @@
(revealer
:transition "crossfade"
:reveal powermenu-visible
:duration "550ms"
:duration anim_duration
(powermenu)
)
)

View file

@ -43,7 +43,7 @@
(revealer
:transition "crossfade"
:reveal osk-ts
:duration "550ms"
:duration anim_duration
(osk-toggle-on)
)
)
@ -93,7 +93,7 @@
(revealer
:transition "crossfade"
:reveal tablet-ts
:duration "550ms"
:duration anim_duration
(tablet-toggle-on)
)
)
@ -143,7 +143,7 @@
(revealer
:transition "crossfade"
:reveal heart-ts
:duration "550ms"
:duration anim_duration
(heart-toggle-on)
)
)
@ -262,7 +262,7 @@
(revealer
:transition "crossfade"
:reveal notif-panel-state
:duration "550ms"
:duration anim_duration
(notif-panel-on)
)
)

View file

@ -20,6 +20,8 @@
(deflisten br_icon "$EWW_PATH/brightness.sh icon")
(defpoll br :interval "1s" "$EWW_PATH/brightness.sh br")
(defvar anim_duration "550ms")
(defpoll completeday :interval "1h" "date '+%A, %d %B'")
(defpoll lithour :interval "30m" "date +%H")
(defpoll litmin :interval "30s" "date +%M")