You are not logged in.
Hi,
I'm used to Xfce's whiskermenu and the super key to get some sort of "launcher". To get something similar with gmrun I added the following line to .config/openbox/autostart:
xcape -e 'Super_L=Alt_L|F2'
This runs as daemon in the background for modding the left super key onto Alt+F2 and launches gmrun, but only on release so it doesn't interfere with any other super key combinations. The package xcape is in Debian's repository. You can tweak the expression for any modifier and add multiple remappings according to this structure:
'ModKey=Key[|OtherKey][;NextExpression]'
Maybe it's useful for someone else!
Offline
Great tip. There have been discussions in the past on this forum about how to use the "windows logo" key by itself as a hot key. The xcape software seems to be a good solution. I added this to the openbox autostart script:
xcape -e 'Super_L=Super_L|space' &
which now brings up my menu with "only" the windows key. Using the windows key as a modifier (e.g., "w-t" to open a terminal) still works good.
Thanks vinzf!
Offline
You're welcome, glad it was useful!
Offline
very interesting!. thanks for the tip, @vinzv
BunsenLabs on deviantArt
Don't touch my git!
Offline
Thanks, clever solution. Marking this up for future use.
Offline
There is also the fork
https://github.com/hanschen/ksuperkey
which is used by ArchLabs
https://github.com/ARCHLabs/Archlabs-User-Home/blob/master/etc/xdg/autostart/ksuperkey.desktop
Offline
Yeah, that's what I used for quite a while as well. The dev explains his fork quite good:
https://github.com/hanschen/ksuperkey/i … t-69687618
Meanwhile xcape is on par with ksuperkey and as it's already in Debian's repositories I prefer using that.
Offline
Thanks. That's a useful link. I'll stick with xcape too.
Offline
I added this to the openbox autostart script:
xcape -e 'Super_L=Super_L|space' &
I suggest this as default in Bunsenlabs Lithium.
Offline
Currently super + space opens the main menu so I'm not sure if this default behaviour should be broken.
But on the other hand: https://xkcd.com/1172/
Offline
^Super+Space would still be available, nothing would be broken.
Ok, maybe that xcape line could be commented out in autostart as default, with explanation.
Offline
^Super+Space would still be available, nothing would be broken.
Gosh, you're right, my bad. I had some knot inside my brain.
Ok, maybe that xcape line could be commented out in autostart as default, with explanation.
That of course would be a good thing!
Offline
^Super+Space would still be available, nothing would be broken.
Ok, maybe that xcape line could be commented out in autostart as default, with explanation.
This sounds good.
Once Helium is released we can't push changes to peoples' autostarts, so things like this, even if commented-out, should go in from the start.
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
xcape works nicely here.
Has anyone had any problems with starting it up in openbox/autostart?
If not, let's add it to the install list (it's a very small package) and enable Super>menu in autostart for Helium.
The xcape command returns in a few ms so there's no need to fork with an ampersand.
RAM usage doesn't seem too dire for this modern age...
There's still time (just) to put it in.
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
This is in BL Helium - thanks @vinzv for the idea!
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline