Bug 401989 - Unable to set shortcut for Special Window/Application settings in window menu
Summary: Unable to set shortcut for Special Window/Application settings in window menu
Status: RESOLVED INTENTIONAL
Alias: None
Product: kwin
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 5.14.4
Platform: Other Linux
: VLO wishlist
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-11 06:53 UTC by Andrew Shark
Modified: 2018-12-11 21:23 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Shark 2018-12-11 06:53:54 UTC
When you are creating and testing some window rules, you may want to use window menu (right click on window title) -> more actions -> Special Window/Application settings. You need to get this menu item very often and it is not so convenient. So you may want to temporary create a shortcut for them.

But there is no way to set a global shortcut for these actions (in global shortcuts -> kwin these actions are not presented). Could you please add them there?

Additional info:
As a workaround I open Window Rules in system settings and _edit_ rules from there. You can also create new rules from there, but in this case you need manually detect and fill in properties of some window. So to _create_ a rule, I manually run window menu -> more actions -> Special Window shortcut. This is why I created this report.
Actually there is also a Window Manager settings window menu item, that also is not shortcutable, maybe add it there too.

Operating System: Arch Linux 
KDE Plasma Version: 5.14.4
Qt Version: 5.11.2
KDE Frameworks Version: 5.52.0
Comment 1 Vlad Zahorodnii 2018-12-11 08:59:30 UTC
I personally think that adding configurable shortcuts for special window/application settings is not worth that. Those two dialogs are not expected to be used every 5 minutes, so it doesn't make sense to have shortcuts for them, imho.
Comment 2 Martin Flöser 2018-12-11 15:56:43 UTC
I agree. This is not a good candidate for a global shortcut. Also it's possible to create a KWin script which adds a global shortcut for this action.
Comment 3 Andrew Shark 2018-12-11 21:23:12 UTC
Ok. I do not know how to make a kwin script, but I will just describe an alternative way how can you set shortcut for this. This may be useful for those who have found this bug report.

1) Go to System settings -> Shortcuts -> Custom shortcuts -> New -> Global shortcut -> 
 1.1) there is "send keyboard input" action and we could use alt+f3, but it fails. I think this is because you trigger it with shortcut, and it starts synthesize keyboard input immediately, while you have hot released trigger keys. So we cannot use this way.
 1.2) there is "command/url" action which we will use to run xdotool. Because of the same reason (interfering synthesized input with actual input), we need to sleep 1 second to wait until you release trigger shortcut.
2) go to Action tab and insert the following command without quotes:
"sleep 1; xdotool key alt+F3 Down Down Down Down Right Down Down Down Down Down Down Down Down Return".
3) Set some shortcut on the Trigger tab.
4) Press shortcut and do not move your mouse, otherwise it will fail to go through menu items.