← 返回命令列表

Linux command

alltray 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Click-mode:

alltray

Dock a specific application

alltray [application]

Dock an application

alltray -i [path/to/icon.png] [application]

Dock an application

alltray -s [application]

Dock an application

alltray --sticky [application]

Create a keyboard shortcut

alltray -k [Modifier:]Key [application]

说明

AllTray docks any application into the system tray, even applications that do not natively support tray icons. This allows you to minimize applications like terminals, email clients, or media players to the system tray instead of the taskbar. A key feature is that clicking the window's close button minimizes the application to the system tray rather than closing it. This behavior can be changed with the --nominimize option. AllTray works with GNOME, KDE, XFCE 4, Fluxbox, WindowMaker, and other window managers that support the system tray specification. When run without arguments, AllTray enters click-mode where you can click on any window to dock it. Press c to abort click-mode.

参数

-h, --help
Show summary of options.
-v, --version
Show version of program.
-d, --debug
Show debug messages.
-s, --show
Do not hide window after start.
-i, --icon _FILE_
Use a PNG image as the tray icon.
-l, --large_icons
Allow icons larger than 24x24 pixels.
-st, --sticky
Make the window visible on all workspaces.
-g, --geometry _GEOMETRY_
Set initial window position (see man X for format).
-k, --key _Modifier:Key_
Create a keyboard shortcut to toggle window visibility.
-nm, --nominimize
Close button closes the application instead of minimizing to tray.
-conf, --configure
Show KDE configuration dialog.

FAQ

What is the alltray command used for?

AllTray docks any application into the system tray, even applications that do not natively support tray icons. This allows you to minimize applications like terminals, email clients, or media players to the system tray instead of the taskbar. A key feature is that clicking the window's close button minimizes the application to the system tray rather than closing it. This behavior can be changed with the --nominimize option. AllTray works with GNOME, KDE, XFCE 4, Fluxbox, WindowMaker, and other window managers that support the system tray specification. When run without arguments, AllTray enters click-mode where you can click on any window to dock it. Press c to abort click-mode.

How do I run a basic alltray example?

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

What does -h, --help do in alltray?

Show summary of options.