How to bind to "Super" key only? #922
-
Hi! Awesome launcher and features. Really love it! However, it seems I can't bind the Super key to launch it? I can bind "Super + 'something'" but not Super-only. Is there anyway this can be achieved? Using Ubuntu 18.10 by the way |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 3 replies
-
Super is a modifier. It doesn't trigger a normal key press event. If you want it to act like a plain key when you press and release immediately without hitting any other keys this is called "dual-role" keys. You have to use something like Update 2022: There is now actually. A tool called Interception tools and the Dual Function Keys plugin. |
Beta Was this translation helpful? Give feedback.
-
using Edit: |
Beta Was this translation helpful? Give feedback.
-
@aasmpro thanks for providing a workaround.
I'm closing this issue. |
Beta Was this translation helpful? Give feedback.
-
I just learned you can do this in Gnome too if you unset Mutter's This should work:
While it doesn't break Super L as a modifier key it will show ulauncher unconditionally when you press Super, not like Mutter's Restoring the defaults:
|
Beta Was this translation helpful? Give feedback.
-
Hey @friday - might you know how to use xcape to get this to work, specifically? I was browsing over the github but the usage part is like gibberish. Maybe I have to slow down 😏 😂 I run / install in terminal: Thanks in advance and hope all is well. |
Beta Was this translation helpful? Give feedback.
-
mapping the super key to launch Ulauncher would be great |
Beta Was this translation helpful? Give feedback.
-
For Linux Mint; a workaround is to go into |
Beta Was this translation helpful? Give feedback.
-
I found out how to set the the trick is to assign the dbus call to the however this alone will not focus the application. for this we need to install sudo apt install wmctrl -y
echo $'#!/bin/bash
dbus-monitor --profile "interface='net.launchpad.ulauncher',member='toggle_window_focus'" |
while read -r line; do
ulauncher-toggle
done
' > ~/.config/autostart/listen_ulauncher_toggle.sh
# create autostart launcher for ulauncher toggle
echo $'[Desktop Entry]
Exec=/home/simon/.config/autostart/listen_ulauncher_toggle.sh
Icon=dialog-scripts
Name=listen_ulauncher_toggle.sh
Path=
Type=Application
X-KDE-AutostartScript=true
' > ~/.config/autostart/listen_ulauncher_toggle.sh.desktop
# register dbus to toggle and focus window
kwriteconfig5 --file ~/.config/kwinrc --group ModifierOnlyShortcuts --key Meta "net.launchpad.ulauncher,/net/launchpad/ulauncher,net.launchpad.ulauncher,toggle_window_focus"
qdbus org.kde.KWin /KWin reconfigure
let me know if something seems wrong, I'm quite new to Linux |
Beta Was this translation helpful? Give feedback.
I just learned you can do this in Gnome too if you unset Mutter's
overlay-key
and then bind toSuper_L
. You have to use dconf or gsettings since the GUI keyboard settings is restricted by the same reason as already mentioned.This should work:
While it doesn't break Super L …