KDocker icon indicating copy to clipboard operation
KDocker copied to clipboard

Option do assign a shortcut for docked window

Open bodywithoutorgans opened this issue 9 years ago • 4 comments

It would be great to be able do assign keyboard shortcut for a docked window. Now we can do it in KDE window rules, but the shortcut is inactive once the window is hidden.

bodywithoutorgans avatar Feb 02 '16 22:02 bodywithoutorgans

I don't know what's wrong but that should work - and I think it does start to work. However, KDocker docks it straight back before the window fully appears. I've tested and seen a similar effect (using Firefox window as target) by opening 'System Activity', right-clicking on Firefox and 'Show Application Window'. The window appeared, faintly, then went away. (Often you see nothing.) Similarly, if you have wmctrl package installed, this should also work (and almost does):

 wmctrl -a 'Mozilla Firefox' 

If anyone knows how it might be fixed, please comment.

Daxx avatar Feb 03 '16 05:02 Daxx

You would have to specify the shortcut with a (not yet implemented) cli option. KDocker instances a new process for every docked window. To avoid automatic re-docking, you can use some other cli options. See the existing options with kdocker -h.

rapgro avatar Feb 03 '16 16:02 rapgro

The lack of support of key bindings is what led me to create ktrayshortcut, but I don't have time to maintain it and could not find time to port it to KF5 yet. I'd love to see kdocker supporting global key bindings for toggling the windows...

rosenfeld avatar Apr 11 '16 12:04 rosenfeld

I realized I actually didn't miss support for tray icons, just global hotkeys to toggle the windows, so I created this application:

https://github.com/rosenfeld/hotkeys-manager

I'm posting here in case it fits the needs of other people looking at this issue...

rosenfeld avatar Apr 11 '16 21:04 rosenfeld