This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Super key to load Application Menu

132

Votes
155
23
Tags: None
(comma "," separated)
gyges
Registered Member
Posts
5
Karma
0
TheBlackCat wrote:This isn't possible because of how Qt handles shortcuts.

Now, since Unity 2D (built with Qt 4.7) makes use of the meta key as a stand-alone-key as well as a modifier key, there seems to be a way to do this with Qt. So, providing both ways of using meta key, there should't be any conflicts with users' habits or workflows.
luebking
Karma
0
a) patch Qt
b) install a native X event filter (per application and if done w/o actually knowing what one does, great source of trouble)
c) map the meta key to a non modifier

No idea what ubuntu did, but it's one of those as it's necessary to fire key release events for modifiers if there was no second key clicked and it's also necessary to act on the release, what shortcuts in general do not - you maybe have noticed such difference?
paulm
Registered Member
Posts
60
Karma
0
OS
Given the absolute mess that Microsoft has made of Windows 8 (and the mess with Unity and Gnomeshell) KDE has a massive opportunity here to exploit this and syphon over masses of Windows users. I know that the mantra is that "KDE is not Windows" (indeed, it is better), but we must acknowledge the reality that if KDE is to grow and have a long-term future closer to the mainstream at any time, then growth can only come dominantly from Windows users. Therefore, KDE should be going out of our way to make the transition from Windows as smooth as possible, and if that means going to a lot of hassle to implement some of Windows' better features (and I believe the Windows way to be better in this case), then so be it. (I'd also argue for aligning more keyboard shortcuts towards the Windows way in addition to this).

As for those stating that the super key needs to be a modifier, well Windows already uses the super key as a modifier for many window operations (and as others have stated, so does Gnomeshell), so I can't see how it is a problem to act both as a modifier and as an individual key at the same time.

We must strike while the iron is hot! This may seem like a minor issue to some, but in terms of user experience it is quite major. This feature should be given the up-most priority ahead of the Windows 8 launch.
markum
Registered Member
Posts
165
Karma
1
I would prefer the super key would load Krunner.


markum, proud to be a member of KDE forums since 2008-Nov.
mastercatz
Registered Member
Posts
1
Karma
0
what about making it

Super L + Super R

would that work ?

what is the menu short cut any how

90% of the time my mouse does not load first time and I have to drop back to terminal Ctrl+function key and Ctrl + C and run startx again
cdarko
Registered Member
Posts
5
Karma
0
I fail to see why this is a problem at all.

To bind meta by itself, one binds a press and release of meta as a standalone key, but when held, and pressed in combination with another key, it should act as a modifier.

Isn't that simple and easy to implement? I mean, surely qt has means by which one can address keypress and keyrelease.
(I would use it to launch krunner, due to loving unity's dash, but wanting something more powerful, though.)
pawelw
Registered Member
Posts
3
Karma
0
When I saw this thread i create account here to share my solution ;)
Simply add to your session:
xmodmap -e 'keycode 133 = F13'
This makes new F13 key redirection from meta.
Then use new F13 key to create shortcut to Krunner or Takeoff for example.

PS.
Sorry for bad english...I'm really exhausted today.
cdarko
Registered Member
Posts
5
Karma
0
When I saw this thread i create account here to share my solution ;)
Simply add to your session:
xmodmap -e 'keycode 133 = F13'
This makes new F13 key redirection from meta.
Then use new F13 key to create shortcut to Krunner or Takeoff for example.


Sorry, but as discussed above, that disables the modifier behaviour of the meta key.
What is desired is the ability to use it as *both* a standalone key, and a modifier, as is done in Unity, Unity2D and windows.
pawelw
Registered Member
Posts
3
Karma
0
Maybe try this:

(define (define-chord-keys key1 key2 cmd-k1 cmd-k2 cmd-k1-k2 cmd-k2-k1)
"Define chording keys"
(let ((k1 #f) (k2 #f))
(xbindkey-function key1 (lambda () (set! k1 #t)))
(xbindkey-function key2 (lambda () (set! k2 #t)))
(xbindkey-function (cons 'release key1)
(lambda ()
(if (and k1 k2)
(run-command cmd-k1-k2)
(if k1 (run-command cmd-k1)))
(set! k1 #f) (set! k2 #f)))
(xbindkey-function (cons 'release key2)
(lambda ()
(if (and k1 k2)
(run-command cmd-k2-k1)
(if k2 (run-command cmd-k2)))
(set! k1 #f) (set! k2 #f)))))

From: http://www.nongnu.org/xbindkeys/xbindkeysrc.scm.html

I'm not sure if this works, but i think it should.
User avatar
Malsasa
Registered Member
Posts
58
Karma
0
OS
I am waiting for this feature for years. I think it will be great helper for Windows user to use KDE. GNOME Shell and Unity ahead leading. WIN key is very useful for frequent tasks. I vote + for this.


User avatar
Gallaecio
KDE Developer
Posts
116
Karma
0
OS
KoolGeKo wrote:Question: is it actually impossible to use a key both as a modifier AND get something done by itself only?

In our case.
- You press key 'META/super'
- If you press another key --> you the combo modifier+what-you-pressed
- otherwise (thus if you release key 'META/super' before pressing any other key) --> you get the kickoff menu


Exacty what I had in mind. I even wonder, if this is ever done, why not do it with all the modified keys? (Shift, Ctrl, etc.)
User avatar
Hans
Administrator
Posts
3304
Karma
24
OS
KoolGeKo wrote:Question: is it actually impossible to use a key both as a modifier AND get something done by itself only?


As far as I know it is possible - I believe Unity uses it like that, and KDE3 as well if I remember correctly. The problem is that this is rather "hacky" as the Super key is a modifier key, or can be remapped to a regular key, not both. According to earlier comments Qt doesn't support such keys.

Since many seem to want this I can try to hack something together.


Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.

10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts
User avatar
Hans
Administrator
Posts
3304
Karma
24
OS
Introducing ksuperkey

Since this seems like a popular request, I hacked together something that should give you what you want:
ksuperkey allows you to open the application launcher in KDE Plasma Desktop using the Super key (also known as the 'Windows key'). If you hold down the Super key it will still act as a modifier key, allowing you to use it for other keyboard shortcuts.

Download is available here: http://kde-apps.org/content/show.php?content=154569


Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.

10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts
User avatar
google01103
Manager
Posts
6668
Karma
25
has any tried this?
http://kde-apps.org/content/show.php/ks ... b872c4ed80

Description:
ksuperkey allows you to open the application launcher in KDE Plasma Desktop using the Super key (also known as the 'Windows key'). If you hold down the Super key it will still act as a modifier key, allowing you to use it for other keyboard shortcuts.
<snip>
You can use ksuperkey to do pretty much anything (e.g. launch KRunner), just bind Alt+F1 to the action
<snip>


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
greatperson
Registered Member
Posts
75
Karma
0
OS
ksuperkey works for me, thank you.
For lazy Kubuntu 12.04 users on x86, here's DEB package for it created by me. ^-^ (It adds ksuperkey to autostart, too.)


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot]