LinuxCommandLibrary

kdocker

Dock KDE applications into the system tray

TLDR

Display a cursor to send a window to the system tray when pressing the left mouse button (press any other mouse button to cancel)

$ kdocker
copy

Open an application and send it to the system tray
$ kdocker [application]
copy

Send focused window to the system tray
$ kdocker -f
copy

Display a cursor to send a window to the system tray with a custom icon when pressing the left mouse button
$ kdocker -i /[path/to/icon]
copy

Open an application, send it to the system tray and if focus is lost, minimize it
$ kdocker -l [application]
copy

Display version
$ kdocker --version
copy

SYNOPSIS

kdocker [-i|--iconic] [-k|--keep] [-t|--title TITLE] [-c|--class CLASSNAME] [-h|--help]

PARAMETERS

-i, --iconic
    Dock the window iconically (minimize to taskbar icon)

-k, --keep
    Keep window docked even if it requests undocking

-t TITLE, --title TITLE
    Dock window matching exact title

-c CLASSNAME, --class CLASSNAME
    Dock window matching class name (WM_CLASS)

-h, --help
    Display help and exit

DESCRIPTION

kdocker is a utility for the KDE desktop environment that allows users to dock application windows to the taskbar (panel). When docked, windows are minimized but remain accessible via their icon on the panel, behaving like traditional dock applications.

It primarily targets KDE 3.x and 4.x, integrating with KWin window manager. Users can dock the active window without arguments or specify windows by title or class name. Options like --iconic minimize to icon, and --keep prevents undocking.

Common use: Run kdocker to dock the foreground app, freeing desktop space while keeping quick access. It's lightweight but deprecated in modern Plasma (KDE 5+), where Plasma panels and activities handle similar tasks natively.

CAVEATS

KDE 3/4 only; unsupported in Plasma 5+. Requires running KDE session. Window must support iconify.

DEFAULT BEHAVIOR

Without args, docks the active/foreground window.

FINDING CLASS/TITLE

Use xprop | grep WM_CLASS or xwininfo to get window class/title for precise targeting.

HISTORY

Developed for KDE 3.x (~2003) as part of kdeutils or kdocker package. Maintained through KDE 4, but dropped in Plasma 5 favoring native panel features. Last active ~2010.

SEE ALSO

kwin(1), kpanel(1), wmctrl(1)

Copied to clipboard