{"version": "https://jsonfeed.org/version/1", "title": "/dev/posts/ - Tag index - kde", "home_page_url": "https://www.gabriel.urdhr.fr", "feed_url": "/tags/kde/feed.json", "items": [{"id": "http://www.gabriel.urdhr.fr/2015/07/29/i-can-has-systray/", "title": "I can has systray?", "url": "https://www.gabriel.urdhr.fr/2015/07/29/i-can-has-systray/", "date_published": "2015-07-29T00:00:00+02:00", "date_modified": "2015-07-29T00:00:00+02:00", "tags": ["computer", "gui", "kde"], "content_html": "

In Plasma 5, support for the XEmbed-based\n\u201clegacy\u201d systray protocol\nwas removed:\nonly the new SNI protocol is handled.\nHowever, in the real worl a lot of applications do not handle the new protocol:\nQt4 and Qt5 applications can be fixed\nby installing the sni-qt (currently in experimental) and libdbusmenu-qt5 respectively\nbut other applications (such as GTK ones) must be patched/recompiled with SNI support.\nWithout this, windows disappear into oblivion \"\ud83d\ude3f\".\nYou can have a seamless systray-enabled Plasma panel\nwith a single (OK, two) line of shell \"\ud83d\ude3c\".

\n

Implementation

\n

First, resize your panel and remove some space on the right\n(this is where we're going to add a new panel):

\n

\"\"

\n

Then install trayer and run:

\n
trayer --align right --widthtype pixel --width 150 --transparent false \\\n  --heighttype pixel --height 30 --alpha 230 --padding 10\n
\n\n\n

Now, you have systrays in your panel: \"\ud83d\ude38\"

\n

\"\"

\n

You might need to adjust the parameters of trayer and resize the panel in\norder to have a seamless panel.

\n

Installation

\n

You can then add a script to do this (mine is in ~/.bin/icanhazsystray):

\n
#!/bin/sh\nexec trayer --align right --widthtype pixel --width 150 --transparent false \\\n  --heighttype pixel --height 30 --alpha 230 --padding 10\n
\n\n\n

Now, you can ask Plasma to run this script when starting the session.

\n

The new Plasma 5 is quite nice by the way (but the lack of classic\nsystray is not so nice).

\n

References

\n"}]}