Bug 396572 - Question: Keyboard shortcuts without KDE Plasma
Summary: Question: Keyboard shortcuts without KDE Plasma
Status: RESOLVED FIXED
Alias: None
Product: lattedock
Classification: Plasma
Component: application (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Michail Vourlakos
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-16 13:31 UTC by null
Modified: 2018-07-28 20:51 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description null 2018-07-16 13:31:08 UTC
Hi, sorry if this is not the right place to ask (I don't know where else I could find this info).

I am using latte dock and some other KDE applications without actually using KDE Plasma itself. I was wondering if it was possible to perform the keyboard shortcuts to show/hide the dock (and maybe even the meta+1-9 keys to start a specific application) without relying on the KDE key bindigng system. 

I would guess there is some qdbus command one could manually run?

Thanks
Comment 1 Michail Vourlakos 2018-07-20 13:26:12 UTC
> without relying on the KDE key bindigng system. 

I dont think this is possible

> qdbus command one could manually run?

Only one action can be accessed that way, the single Meta key action to open your "Application Launcher"
Comment 2 null 2018-07-20 19:09:48 UTC
> I dont think this is possible
Oh that's a shame. I think it does SOEMTHING using dbus, so I assumed it must be somehow possible. I mean, how else does KDE's shortcut system tell plank to show/hide?

> Only one action can be accessed that way, the single Meta key action to open
> your "Application Launcher"
Sorry, what do you mean with "Application Launcher"?
Comment 3 Michail Vourlakos 2018-07-21 15:37:10 UTC
(In reply to null from comment #2)
> I mean, how else does KDE's shortcut system tell
> plank to show/hide?

no idea, the framework used from almost all kde apps including Latte is KGlobalAccel . Are you sure that Latte needs Plasma to be running in order for its global shortcuts to work?

> 
> > Only one action can be accessed that way, the single Meta key action to open
> > your "Application Launcher"
> Sorry, what do you mean with "Application Launcher"?

https://www.phoronix.com/images/a/kde-2016-review/widgets-launchers.png
Comment 4 null 2018-07-23 21:44:46 UTC
> no idea, the framework used from almost all kde apps including Latte is
> KGlobalAccel . Are you sure that Latte needs Plasma to be running in order
> for its global shortcuts to work?
Okay, on second testing it seems that the shortcuts technically work, but they're basically unusable. You have to hold the shortcut for a solid second, and even then the letters are also send to whatever program you have open. 
For example, I have show dock on Meta+Q, so holding that sends "q" to my firefox window :/
Comment 5 Michail Vourlakos 2018-07-24 06:57:56 UTC
(In reply to null from comment #4)
> For example, I have show dock on Meta+Q, so holding that sends "q" to my
> firefox window :/

What is your system ? Desktop Environment, Window Manager?
Comment 6 null 2018-07-24 23:34:29 UTC
> What is your system ? Desktop Environment, Window Manager?
Antergos (Arch based).
I tried this in both Budgie and GNOME Shell.
Comment 7 Michail Vourlakos 2018-07-25 20:02:18 UTC
(In reply to null from comment #6)
> > What is your system ? Desktop Environment, Window Manager?
> Antergos (Arch based).
> I tried this in both Budgie and GNOME Shell.

Plasma devs responded the following: 

------
kglobalaccel5 gets autostarted when needed and works on X11 unless the shortcuts are already taken by another de-specific shortcut system.

On Wayland kglobalaccel5 needs support from the compositor which to my knowledge only KWin provides. No in-process solution could fix this.
------

In my Plasma system there is a kglobalaccel5 app running which is responsible for global shortcuts...
Comment 8 null 2018-07-28 20:51:18 UTC
> Plasma devs responded the following: 
> 
> ------
> kglobalaccel5 gets autostarted when needed and works on X11 unless the
> shortcuts are already taken by another de-specific shortcut system.
> 
> On Wayland kglobalaccel5 needs support from the compositor which to my
> knowledge only KWin provides. No in-process solution could fix this.
> ------
> 
> In my Plasma system there is a kglobalaccel5 app running which is
> responsible for global shortcuts...

I don't use wayland. In X11 I expect the shortcuts to not also forward the pressed key to whatever the active application is. That said, this is obviously not a latte-dock issue and I guess if I want better support for KDE shortcuts in non-KDE, I would have to open a bug for kglobalaccel5 and make my case there.

Thanks for the information however. I've personally just switched to KDE Plasma so I don't have much of a personal interest in pursuing this further. Latte's integration with Activities is really neat..