Linux command
kdocker 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Select a window to dock by clicking on it
kdocker
Launch an application and dock it to the tray
kdocker [application]
Dock the currently focused window
kdocker -f
Dock with a custom icon
kdocker -i [/path/to/icon.png] [application]
Launch an application, dock it, and minimize on start
kdocker -o [application]
Dock a window and minimize it when it loses focus
kdocker -l [application]
说明
kdocker allows any application to be docked to the system tray. When an application is docked, clicking its tray icon toggles the window visibility, effectively providing system tray functionality to applications that don't natively support it. The tool works by selecting a window (interactively via mouse click or automatically) and managing its visibility through the system tray. It works with both Qt and GTK applications on any X11 desktop environment.
参数
- -f
- Dock the currently focused window.
- -i _ICON_
- Use a custom icon for the docked application.
- -l
- Minimize to tray when the window loses focus.
- -m
- Keep application window mapped (visible); don't hide when minimizing.
- -o
- Minimize to tray immediately on start.
- -p _SECONDS_
- Wait the specified number of seconds before docking.
- -t
- Remove the tray icon when the application window is closed.
- -q
- Disable notification balloon messages.
- -w _WINDOW_ID_
- Dock the window with the specified X11 window ID.
- --version
- Display version information.
FAQ
What is the kdocker command used for?
kdocker allows any application to be docked to the system tray. When an application is docked, clicking its tray icon toggles the window visibility, effectively providing system tray functionality to applications that don't natively support it. The tool works by selecting a window (interactively via mouse click or automatically) and managing its visibility through the system tray. It works with both Qt and GTK applications on any X11 desktop environment.
How do I run a basic kdocker example?
Run `kdocker` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -f do in kdocker?
Dock the currently focused window.