3 Ways to Embed Applications in System Tray | Linux Today

3 Ways to Embed Applications in System Tray

Written By
Web Webster
Web Webster
Mar 7, 2014

Docking various applications comes in handy especially when you want to have applications you???d like to run continuously without taking up taskbar space, but the application in question has no such option. Below are a few ways of accomplishing this; the tools provided here will dock any window into the system tray, and they have several useful command-line options to control the behavior of docked windows.

Under GNOME there is AllTray, which really does all that I want in terms of putting my apps in the system tray. AllTray will skip showing the application’s window at all, can be invoked so that it changes the system tray icon to its own icon, and has options to dock or undock the application as well.

Here is an example:
alltray firefox

And another example, for putting into the system tray a terminal program like, say, the CMus music player:
alltray gnome-terminal -e cmus

This will embed gnome-terminal in the systray, which in turn will execute cmus inside it.

AllTray is a good choice for GNOME users:
alltray

For KDE, we have KDocker and the ksystraycmd command.

KDocker uses the same style as AllTray, you can run it as kdocker appname or just as kdocker and then select the desired window with your mouse. KDocker also offers options to dock/undock your applications, change the systray icon, skip taskbar and pager, make the window sticky, or do not automatically hide the application window when docking it.

kdocker01

KDocker command-line options:
kdocker02

KSysTrayCmd is another tool included by default in KDE with no graphical interface, but it also gets its job done. You can run it as ksystraycmd ???hidden appname to embed an application in the system tray and automatically hide the window.

ksystraycmd

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.