百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
K

ksuperkey

> 编程语言
开源

Linux 实用程序,可让您使用 Super 键同时打开开始菜单和作为键盘快捷键中的修改键

359 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

Linux 实用程序,可让您使用 Super 键同时打开开始菜单和作为键盘快捷键中的修改键

KSUPERKEY

ksuperkey allows you to open the application launcher in desktop environments such as KDE Plasma 5.8, make sure to disable the Plasma mapping by modifying ~/.config/kwinrc to:

[ModifierOnlyShortcuts]
Meta=

Installation

For a list of distribution-specific packages, please see the ksuperkey page in the KDE Store. Below are some generic instructions for how to compile ksuperkey from source.

  1. Install dependencies.

    Ubuntu:

    $ sudo apt-get install git gcc make libx11-dev libxtst-dev pkg-config

    CentOS:

    $ sudo yum install git gcc make libX11-devel libXtst-devel pkgconfig

    On some systems you also need to install the build-essential (or equivalent) package.

  2. Clone project and compile:

    $ git clone https://github.com/hanschen/ksuperkey.git
    $ cd ksuperkey
    $ make
  3. Install system-wide using e.g. sudo (optional):

    $ sudo make install
  4. Launch ksuperkey. Make sure that the shortcut for the application launcher is set to Alt+F1.

Usage

$ ksuperkey [-d] [-t ] [-e ]

-d

Debug mode. Does not fork into the background.

-t

If you hold a key longer than this timeout, ksuperkey will not generate a key event. Default is 500 ms.

-e

The expression has the grammar 'ModKey=Key[|OtherKey][;NextExpression]'

The list of key names is found in the header file X11/keysymdef.h (remove the XK_ prefix). Note that due to limitations of X11 shifted keys must be specified as a shift key followed by the key to be pressed rather than the actual name of the character. For example to generate "{" the expression 'ModKey=Shift_L|bracketleft' could be used (assuming that you have a key with "{" above "[").

You can also specify ModKey in decimal (prefix #), octal (#0), or hexadecimal (#0x). It will be interpreted as a keycode unless no corresponding key name is found.

Example 1

ksuperkey

Makes left Super key generate Alt+F1 when pressed and released on its own (does not affect existing keyboard combinations using the Super key).

Example 2

ksuperkey -e 'Control_L=Escape;Super_L=Alt_L|F2'

This will make Left Control generate Escape when pressed and released on its own, and Left Super generate Alt+F2 combination when pressed and released on its own.

Note regarding xmodmap

If you are in the habit of remapping keycodes to keysyms (e.g. using xmodmap), there are two issues you may encounter:

  1. You will need to restart ksuperkey after every time you modify the mapping from keycodes to keysyms (e.g. with xmodmap), or ksuperkey will still use the old mapping.

  2. The key you wish to send must have a defined keycode. So for example, with Control_L=Escape, you need an Escape key defined in your xmodmap mapping. (A workaround is to use 255, which some keyboards cannot send.)

Contact

Find the latest version at https://github.com/hanschen/ksuperkey

The author can be reached at contact at hanschen dot org

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言