Task manager drag and drop

I recently stumbled upon a feature request about the ability to drop files onto a task manager entry to have the associated application open them. You can pin applications to the task manager after all, so why would those launchers behave differently from other application icons?

Dropping application shortcuts, for instance from Kickoff, will pin them as launchers, instead. Also, hovering a task entry whilst dragging something will still raise the respective window to the front.

Improved right-to-left languages support

One area that had been quite neglected is support for right-to-left languages, such as Hebrew, mostly because none of us Plasma core developers are native to such writing systems.

Over the past weeks I fixed many glitches when plasmashell run in “mirrored” mode, such as:

System tray, applet popups and config dialog contents not being mirrored

The panel pushing widgets out the right side of the screen when widgets are locked

The calendar being messed up

QML fortunately makes it easy to mirror your layout using the LayoutMirroring attached property which flips horizontal anchors (left anchors become right anchors and vice-versa) and the order in which items are laid out in a Row:

“childrenInherit” lets it propagate this to all child elements. Since it operates on a per-scene basis, enabling this on the panel does not propagate to popup windows. You still need to take layout direction into account when positioning items manually with the “x” and “y” properties.

Want to help? Just run plasmashell (or any Qt application for that matter) with the “-reverse” parameter and report bugs and send patches!

plasmashell -reverse

Note: If your applications did not automatically mirror, make sure the Qt translations package (e.g. qttranslations5-l10n in *buntu) is installed. QGuiApplication’s layout direction detection (say that five times in a row) decides based on a “translate this as 1 if this is a right-to-left language” string which requires the aforementioned package to work.

Some media controller goodies

One of my favorite features in Plasma is the media controller applet that lets me control my music. This is probably why I constantly tweak and improve it. Here’s some neat tricks that you can do with the media controller:

Middle click the icon to pause/unpause

If you have them, use your forward/back mouse buttons on the icon to change tracks (new in Plasma 5.8)

While the popup is open, you can also use various keyboard shortcuts, such as:

K or space: play/pause

P or N: go to previous/next song

Left/right arrow / J or L: seek back/forward

S: stop playback

numbers 0 through 9: seek to 0%, 10%, 20%, etc of the current song

Did you know that you can use your mouse wheel on the particular icon to adjust volume or screen brightness? Middle clicking the volume icon will also mute and unmute.

In the applet’s context menu you can, provided the player supports this, bring its window to the front when minimized. Unfortunately, VLC player does not support that. However, since I’ve always wanted to know what a media player looks like on the inside, I cloned VLC player’s git repository and submitted my first patch there, fixing said feature.

And thanks for the tip about middle clicking the media control icon to pause/unpause, I didn’t know about that (and that Clementine supports it, too). I have to admit that I somehow think that the media control applet is redundant when a media player is minimized to the systray, as there are now two icons which provide more or less the same functionality, though I like that the applet behaves the same regardless which player I’m using at the moment. If the media control icon supported changing the player’s volume when using the scroll wheel on it (like Amarok and Clementine), it’d “replace” the media player’s icon in the systray for me. (Bonus: also (optionally) indicate playback progress in the icon)
I liked it when the media controls have been added to the task manager tooltips, but when the media player is minimized to the systray, you don’t have the tooltips. It’d be cool if the media control applet also had media controls in its tooltip.

Also thank you for adding the option to restore all windows of a group when middle clicking a group in the task manager (I have patched my task manager, though, such that it happens on left click instead); this feature (and the lack of agenda view) were the reasons why I was still using Plasma 4 on my Notebook. One thing annoys me, though: When restoring a group, the windows seem to be stacked in the order they were opened, but imho stacking them in most recently used order makes more sense (so eg. when restoring a group of browser windows, the last used window will be focused); the smooth tasks plasmoid for Plasma 4 used to behave like that.
I also like the highlight window effect, but I don’t like windows to start flickering as soon as I hover over a task manager entry. A small delay or the option to highlight only when the mouse hovers over a windows preview would be very nice.

there are now two icons which provide more or less the same functionality

I don’t consider applications in the system tray a valid use-case, so if a player does that, it makes it redundant with media controller indeed.

If the media control icon supported changing the player’s volume when using the scroll wheel on it

I wrote a patch for that at one point but didn’t bother as we have per-application volume controls through the volume applet and I didn’t want to add yet another way of screwing with the already way too complex volume behavior.

also (optionally) indicate playback progress in the icon

Playback progress? What do you mean? Playback state at least is indicated by the icon (it’s either a “playing” or a “paused” icon)

When restoring a group, the windows seem to be stacked in the order they were opened, but imho stacking them in most recently used order makes more sense

Can you please file a bugreport/wish on bugs.kde.org for that, blog post comments are usually not the best place to keep track of those things ;)

> I wrote a patch for that at one point but didn’t bother as we have per-application volume controls through the volume applet and I didn’t want to add yet another way of screwing with the already way too complex volume behavior.

But scrolling about the media player applet is way faster than clicking on the volume applet and looking for the right control. And since volume can be adjusted using mpris (I just tried qdbus org.mpris.MediaPlayer2.clementine /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Volume .2), I felt like it is not too complicated to implement it. (I would probably try to patch the applet myself once I have enough spare time again.)

> Playback progress? What do you mean? Playback state at least is indicated by the icon (it’s either a “playing” or a “paused” icon)

The orange part of the Clementine systray icon indicates how long the not yet played part of the currently played song is: http://gulp21.bplaced.net/clementine_systray.png (Amarok used to have the same feature – it’s not very important, but nice to have)

> Can you please file a bugreport/wish on bugs.kde.org for that, blog post comments are usually not the best place to keep track of those things ;)

Thank you!!!
** Sorry about my broken english… **
Can you help me?
I have a problem with KDE Neon and other system
When I switch to hebrew lang and restart the system change to hebrew but not to RTL…
I use fedora but there its change to RTL.

I just did. However, this is usually the maintainer’s task and I’m not really involved in KDE neon. Nonetheless, I experienced the very same bug when trying to figure out why automatic layout-mirroring didn’t work out of the box.