WebSleeping ​

A screen saver component that activates after a period of user inactivity. Supports multiple visual themes including animated text, lightwave effects, and traditional Taiji Bagua.

Basic Usage ​

The screen saver activates after the specified idle time. Any user interaction (mouse move, click, key press, etc.) dismisses it.

Click the button to activate. Move the mouse to dismiss.

Themes ​

Use screen-protect-theme to switch between visual themes: text, lightwave, and taijiibagua.

Current theme: text. Wait 3 seconds to see the screen saver. Move the mouse to dismiss.

API ​

WebSleeping Attributes ​

NameDescriptionTypeDefault
screen-protect-themevisual theme of the screen saverenum'text'
screen-protect-timeidle time in milliseconds before activation (0 to disable)number300000 (5min)
manualopacity of the screen saver overlaybooleanfalse

WebSleeping Exposes ​

NameDescriptionType
resetreset the inactivity timer and re-binds eventsfunction
showshow the screen saverfunction

Source ​

Docs