← 返回命令列表

Linux command

xscreensaver 命令

文本

涉及管道、覆盖或删除,执行前请先确认路径和参数。

常用示例

Start the screensaver daemon

xscreensaver &

Start with no splash screen

xscreensaver --no-splash &

Activate the screensaver immediately

xscreensaver-command -activate

Lock the screen

xscreensaver-command -lock

Deactivate the screensaver

xscreensaver-command -deactivate

Open the preferences GUI

xscreensaver-settings

Preview a specific screensaver

xscreensaver-command -select [saver_number]

Restart the daemon

xscreensaver-command -restart

说明

XScreenSaver is the standard screen saver and locker for the X Window System. It consists of a background daemon that monitors user activity and triggers screensavers, plus a collection of over 200 display hacks (individual screensaver programs). The daemon should be started at login, typically from .xinitrc, .xsession, or a desktop autostart entry. It monitors keyboard and mouse activity to determine idle time. When the idle threshold is reached, it blanks the screen and runs a screensaver. Screen locking can occur automatically after additional idle time or be triggered manually. Configuration is managed through xscreensaver-settings (formerly xscreensaver-demo), a GTK-based GUI that allows selecting which screensavers to run, adjusting timing, and previewing effects. Settings are stored in ~/.xscreensaver. The project includes screensavers ranging from classic effects (flying toasters, matrix) to OpenGL visualizations and physics simulations. Each saver is a standalone executable that can also be run independently.

参数

--no-splash
Do not display the splash screen at startup.
--verbose
Print diagnostics to stderr.
--log _file_
Append diagnostics to the specified log file.
-display _host:n_
Connect to the specified X display.

FAQ

What is the xscreensaver command used for?

XScreenSaver is the standard screen saver and locker for the X Window System. It consists of a background daemon that monitors user activity and triggers screensavers, plus a collection of over 200 display hacks (individual screensaver programs). The daemon should be started at login, typically from .xinitrc, .xsession, or a desktop autostart entry. It monitors keyboard and mouse activity to determine idle time. When the idle threshold is reached, it blanks the screen and runs a screensaver. Screen locking can occur automatically after additional idle time or be triggered manually. Configuration is managed through xscreensaver-settings (formerly xscreensaver-demo), a GTK-based GUI that allows selecting which screensavers to run, adjusting timing, and previewing effects. Settings are stored in ~/.xscreensaver. The project includes screensavers ranging from classic effects (flying toasters, matrix) to OpenGL visualizations and physics simulations. Each saver is a standalone executable that can also be run independently.

How do I run a basic xscreensaver example?

Run `xscreensaver &` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --no-splash do in xscreensaver?

Do not display the splash screen at startup.