https://blog.hanschen.org/2012/10/17/open-application-launcher-with-super-key/

https://blog.hanschen.org/2012/10/17/open-application-launcher-with-super-key/

How to make it work

  1. Install ksuperkey. You can download the source and some distro-specific packages from Linux-apps, but compiling the latest version is also straightforward. First install the dependencies, for example on Ubuntu-based systems:
    sudo apt-get install git gcc make libx11-dev libxtst-dev pkg-config

    On some systems you’ll also need to install the build-essential package (otherwise you’ll get the following error: stdlib.h: No such file or directory). Then run the following commands in a terminal:

    git clone https://github.com/hanschen/ksuperkey.git
    cd ksuperkey
    make
    ./ksuperkey

    ksuperkey runs in the background so you won’t see it

  2. Make sure that the keyboard shortcut for your application launcher is set to Alt+F1 (this is what ksuperkey will send when you press and release the Super key on its alone). Right click on the application launcher icon → Application Launcher Settings → Keyboard Shortcut.

    Checking that the shortcut for Application Launcher is set to Alt+F1

  3. Now pressing the Super key should open the application launcher! If you want this behavior every time you log in, you have to set ksuperkey to Autostart, for example in System Settings → Startup and Shutdown → Autostart → Add Program… → small Browse button → Select the ksuperkey application.

    Add ksuperkey to Autostart

Tips

  1. It’s safe to move the ksuperkey directory to anywhere you want. If you’ve added it to Autostart in System Settings, don’t forget to update the “Command” field with the right path (or remove the old entry and add a new one).
  2. You can use ksuperkey for any action, for example to open KRunner – just bind Alt+F1 to the action.
  3. If you want to change the keys sent by ksuperkey to something else, e.g. Alt+F2, you can easily modify the source code. Open xcape.c in a text editor (e.g. Kate), go to line 92 and change XK_F1); to the key you want, e.g. XK_F2);. Recompile with make and you’re done.
  4. ksuperkey works fine on other workspaces/window managers as well, although it will probably cause problems if the workspace already uses the Super key as a non-modifier key (Unity, GNOME Shell).

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值