LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

kdocker

allows any application to be docked to the system tray

TLDR

Select a window to dock by clicking on it
$ kdocker
copy
Launch an application and dock it to the tray
$ kdocker [application]
copy
Dock the currently focused window
$ kdocker -f
copy
Dock with a custom icon
$ kdocker -i [/path/to/icon.png] [application]
copy
Launch an application, dock it, and minimize on start
$ kdocker -o [application]
copy
Dock a window and minimize it when it loses focus
$ kdocker -l [application]
copy

SYNOPSIS

kdocker [options] [command] [args]

DESCRIPTION

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.

PARAMETERS

-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 WINDOWID_
Dock the window with the specified X11 window ID.
--version
Display version information.

CAVEATS

Requires a system tray (most desktop environments provide one). Only works with X11; does not support Wayland. Behavior may vary with different window managers. Some applications may not dock correctly due to window management quirks. The -p delay option can help when applications take time to create their window.

HISTORY

KDocker was originally a KDE-specific tool but evolved to work with any X11 desktop environment. It provides universal system tray functionality regardless of toolkit.

SEE ALSO

alltray(1), trayer(1)

Copied to clipboard
Kai