Bug 416130 - Global Shortcuts for seeking forward and backward by 5s, 10s etc.
Summary: Global Shortcuts for seeking forward and backward by 5s, 10s etc.
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Media Player widget (other bugs)
Version First Reported In: master
Platform: unspecified Linux
: NOR wishlist
Target Milestone: 1.0
Assignee: Kai Uwe Broulik
URL:
Keywords:
: 457749 (view as bug list)
Depends on:
Blocks: 405096
  Show dependency treegraph
 
Reported: 2020-01-11 18:38 UTC by D. Debnath
Modified: 2025-11-28 16:56 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 6.6.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description D. Debnath 2020-01-11 18:38:54 UTC
Currently we can set Global shortcuts to play, pause, stop, previous or next on currently playing media, but we cannot seek forward or backward. I think this will be a really helpful feature.
Comment 1 Nate Graham 2020-01-12 05:22:37 UTC
Oh yes. I would very much like this.

macOS implemented this by binding the functions in question to when you hold down the keyboard's media playkack back/forward keys. So for example when you held down the fast-forward key, it would skip forward in the current media file by some number of seconds (I don't remember how many). I'd really like to have that in Plasma too!
Comment 2 D. Debnath 2020-01-12 05:35:45 UTC
(In reply to Nate Graham from comment #1)
> Oh yes. I would very much like this.
> 
> macOS implemented this by binding the functions in question to when you hold
> down the keyboard's media playkack back/forward keys. So for example when
> you held down the fast-forward key, it would skip forward in the current
> media file by some number of seconds (I don't remember how many). I'd really
> like to have that in Plasma too!

I find the holding down to fast forward method a little clumsy and inaccurate. However, both options would be welcome.

I actually don't use the keyboard's media playback keys. I've mapped Meta + Space as my Play/Pause shortcut via Global Shortcuts. I would like the Seek Forward/Backward shortcuts to be configurable via Global Shortcuts, and separate from Next and Previous Shortcuts.
Comment 3 Nate Graham 2020-01-12 05:37:16 UTC
Absolutely, they should be configurable in the manner you indicate. I was just suggesting something as a default setting. :)
Comment 4 Andrew Shark 2021-04-14 06:44:00 UTC
I want this feature too :)
I thought it would be player specific, for example, for Dragon Player. But application agnostic shortcut is even better.
Use case is the following. You are listening to some audio with speech, while wtiting some notes in some text application. And you want to seek backward for 10 seconds very very often. Switching between player and notes application is unproductive in this scenario.

Actually, I am listening my own speech recording, while doing a libreoffice impress presentation. And I use a logitech mx master mouse. It has nice feature of gestures with thumb button. Thanks to logiops project, it is possible to assign some actions (such as keystrokes) to gestures direction. I have assigned a playpause to no-direction gesture (which is just pressing thumb button). But for productivity, I would like to assign left-direction gesture to seek 10 seconds backward, and right-direction gesture to speed up the playing speed.
Comment 5 Nate Graham 2021-04-14 14:34:00 UTC
Yup, I periodically have the same use cases

Looking at the MPRIS spec, I don't think it would have to be player-specific. The Seek function can take an offset property: https://specifications.freedesktop.org/mpris-spec/latest/Player_Interface.html#Method:SetPosition
Comment 6 Nate Graham 2021-04-14 15:35:05 UTC
All of this would need to be implemented in plasma-workspace:dataengines/mpris2/ for anyone who is enterprising and much smarter than me. :) I can't make heads or tails of this complicated DBus stuff.
Comment 7 Patrick Silva 2022-08-11 22:24:09 UTC
*** Bug 457749 has been marked as a duplicate of this bug. ***
Comment 8 Fushan Wen 2024-03-14 14:45:55 UTC
Where should the setting of amount of time live?
Comment 9 Nate Graham 2024-03-14 14:50:49 UTC
Personally I'd not even make the durations configurable and just have separate actions:

- Seek forward/backwards by 5 seconds
- Seek forward/backwards by 15 seconds

And leave it at that. Simpler that way.
Comment 10 Bug Janitor Service 2025-11-20 22:01:11 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/6032
Comment 11 cwo 2025-11-28 16:56:50 UTC
Git commit 169ee97b33437b0b70abb669ca79b05d2ba29c30 by Christoph Wolk.
Committed on 28/11/2025 at 10:02.
Pushed by cwo into branch 'master'.

libkmpris/kded: add global shortcuts for seeking

Plasma ships with global shortcuts for most common player control
actions. The exception is seeking, which is supported by MPRIS, but
which we do not expose as a potential shortcut. This can be convenient
e.g. when listening to audio books/podcasts or while working with
transcripted audio.

This change adds short (5s) and long (30s) skips forward and backward
as user-bindable shortcuts with no default binding.
FIXED-IN: 6.6.0

M  +44   -0    libkmpris/kded/mprisservice.cpp
M  +4    -0    libkmpris/kded/mprisservice.h

https://invent.kde.org/plasma/plasma-workspace/-/commit/169ee97b33437b0b70abb669ca79b05d2ba29c30