← 返回命令列表

Linux command

stalonetray 命令

文本

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

常用示例

Start stalonetray

stalonetray

Start with custom background color

stalonetray --background "[#2e3440]"

Start with custom icon size

stalonetray --icon-size [32]

Start with window strut

stalonetray --window-strut [auto]

Start in dockapp mode

stalonetray --dockapp-mode [wmaker]

Start with icons growing from bottom-right

stalonetray --icon-gravity [SE]

Use a custom configuration file

stalonetray --config [~/.config/stalonetray/stalonetrayrc]

说明

stalonetray is a stand-alone system tray (notification area) implementation for X11. It provides a minimalist tray that works with any EWMH-compliant window manager, making it ideal for lightweight setups or window managers without built-in system trays. The tray supports the freedesktop.org System Tray Protocol and XEMBED specification for embedding application icons. It can be positioned anywhere on screen and configured to reserve space (struts) so other windows don't overlap it. Configuration can be done via command-line options or a configuration file at ~/.stalonetrayrc. The file uses keyword-argument pairs with command-line options taking precedence.

参数

-bg, --background _color_
Tray background color (hex triplet or X11 color name).
-i, --icon-size _n_
Default icon size in pixels. Default: 24, minimum: 16.
--icon-gravity _gravity_
Icon positioning gravity: NW, NE, SW, or SE. Default: NW.
--grow-gravity _gravity_
Direction for tray growth: NW, NE, SW, SE, N, S, E, or W.
--geometry _geometry_
Initial tray window geometry (WIDTHxHEIGHT+X+Y).
--max-geometry _geometry_
Maximum tray dimensions.
--window-type _type_
EWMH window type: desktop, dock, normal, toolbar, utility. Default: dock.
--window-strut _mode_
Reserve screen space: auto, top, bottom, left, right, or none.
-d, --dockapp-mode _mode_
Dockapp mode: none, simple, or wmaker.
--slot-size _size_
Grid slot size for icon placement.
--sticky
Make tray window appear on all desktops.
--skip-taskbar
Remove tray window from taskbar.
--kludges _list_
Enable workarounds: fix_window_pos, force_icons_size, use_icons_hints.
--log-level _level_
Logging verbosity: err, info, or trace.
-c, --config _file_
Configuration file path.

FAQ

What is the stalonetray command used for?

stalonetray is a stand-alone system tray (notification area) implementation for X11. It provides a minimalist tray that works with any EWMH-compliant window manager, making it ideal for lightweight setups or window managers without built-in system trays. The tray supports the freedesktop.org System Tray Protocol and XEMBED specification for embedding application icons. It can be positioned anywhere on screen and configured to reserve space (struts) so other windows don't overlap it. Configuration can be done via command-line options or a configuration file at ~/.stalonetrayrc. The file uses keyword-argument pairs with command-line options taking precedence.

How do I run a basic stalonetray example?

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

What does -bg, --background _color_ do in stalonetray?

Tray background color (hex triplet or X11 color name).