# \[HOW-TO\] Convert caps lock to hyper key

**URL:** <https://forum.endeavouros.com/t/how-to-convert-caps-lock-to-hyper-key/24575>\
**Category:** Wiki entry\
**Created:** [February 27, 2022, 6:56pm UTC](https://forum.endeavouros.com/t/how-to-convert-caps-lock-to-hyper-key/24575 "2022-02-27T18:56:34Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![xircon](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/xircon/32/9124_2.png) [@xircon](https://forum.endeavouros.com/u/xircon)\
**Post date:** [February 27, 2022, 6:56pm UTC](https://forum.endeavouros.com/t/how-to-convert-caps-lock-to-hyper-key/24575/1 "2022-02-27T18:56:34Z")

</div>

I stumbled across this today. I have been using xmodmap for years to do this, but it has issues, it has a tendency to stop working.

```auto
cd /usr/share/X11/xkb/symbols
sudo cp gb hyper #Replace gb with your locale 
sudo nano hyper

```

Add the following code within the { }s of xkb\_symbols “basic”.

```auto
key <CAPS> {[Hyper_L]};
key <HYPR> {[Hyper_R , Hyper_L	]};
modifier_map Mod3 { <HYPR> };

```

Ensure that there are no syntax errors

```auto
setxkbmap -layout hyper

```

If there are syntax errors, the command will refuse to load the layout.

The Capslock should be converted to Hyper now. You can test it by setting shortcuts to something in your window manager.

setxkbmap only loads the layout for current session. To make the changes permanent, use the following command

```auto
localectl --no-convert set-x11-keymap hyper

```

Source: [https://ibnishak.github.io/blog/post/caps-to-hyper/](https://ibnishak.github.io/blog/post/caps-to-hyper/)

You will probably want to add to your startup:

```auto
setxkbmap -option shift:both_capslock

```

To regain caps lock function (by pressing both shifts together).

Plasma cannot see the hyper key, but sxhkd can be used to add additional hotkeys.

```auto
hyper+KP_Add
    bopp

hyper+KP_Subtract
    bopm

hyper+Tab
  skippy-xd --toggle-window-picker

hyper+d
    rofi -show drun

```

---

<div class="post-metadata">

**Author:** ![anon63071375](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/a/f0a364/32.png) [@anon63071375](https://forum.endeavouros.com/u/anon63071375)\
**Post date:** [February 27, 2022, 7:16pm UTC](https://forum.endeavouros.com/t/how-to-convert-caps-lock-to-hyper-key/24575/2 "2022-02-27T19:16:16Z")

</div>

I’m assuming this is for XFCE?

Gnome (in tweaks) and Plasma have this functionality built right in and just need to have the box checked. I’ve been using caps as an extra super key for quite a while now.

---

<div class="post-metadata">

**Author:** ![xircon](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/xircon/32/9124_2.png) [@xircon](https://forum.endeavouros.com/u/xircon)\
**Post date:** [February 27, 2022, 7:21pm UTC](https://forum.endeavouros.com/t/how-to-convert-caps-lock-to-hyper-key/24575/3 "2022-02-27T19:21:06Z")

</div>

Hyper is not super, it is a totally seperate modifier dating back to the old lisp machines (space-cadet keyboard - a thing of beauty and fear!).

> **[Space-cadet keyboard](https://en.wikipedia.org/wiki/Space-cadet_keyboard)**
>
> The space-cadet keyboard is a keyboard designed by John L. Kulp in 1978 and used on Lisp machines at Massachusetts Institute of Technology (MIT), which inspired several still-current jargon terms\[citation needed\] in the field of computer science and influenced the design of Emacs. It was inspired by the Knight keyboard, which was developed for the Knight TV system, used with MIT's Incompatible Timesharing System.
> The space-cadet keyboard was equipped with seven modifier keys: four keys for bucky...

So I now have:

- Control
- Super (meta on plasma)
- Hyper
- Alt (or meta on emacs).  
I never get why plasma calls super meta 🤣

---

<div class="post-metadata">

**Author:** ![anon63071375](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/a/f0a364/32.png) [@anon63071375](https://forum.endeavouros.com/u/anon63071375)\
**Post date:** [February 27, 2022, 9:21pm UTC](https://forum.endeavouros.com/t/how-to-convert-caps-lock-to-hyper-key/24575/4 "2022-02-27T21:21:35Z")

</div>

GNOME:

![2022-02-27_13-20](https://forum.endeavouros.com/uploads/default/original/3X/d/8/d80d1f8f0b46cd4da1f897ffee7884c408922943.png)

---

<div class="post-metadata">

**Author:** ![anon63071375](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/a/f0a364/32.png) [@anon63071375](https://forum.endeavouros.com/u/anon63071375)\
**Post date:** [February 27, 2022, 9:31pm UTC](https://forum.endeavouros.com/t/how-to-convert-caps-lock-to-hyper-key/24575/5 "2022-02-27T21:31:18Z")

</div>

KDE:

![2022-02-27_13-30](https://forum.endeavouros.com/uploads/default/original/3X/a/c/ac777123cc08325b137e29f672e61d14c23d10f0.png)

---

<div class="post-metadata">

**Author:** ![anon63071375](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/a/f0a364/32.png) [@anon63071375](https://forum.endeavouros.com/u/anon63071375)\
**Post date:** [February 27, 2022, 9:33pm UTC](https://forum.endeavouros.com/t/how-to-convert-caps-lock-to-hyper-key/24575/6 "2022-02-27T21:33:45Z")

</div>

I’m not aware of a way of doing it in xfce - and I’ll have Cinnamon up and going shortly. It’s been a while, but I can’t recall if Cinnamon has the setting or not. xfce is definitely the least refined of the big 3 desktops.

That being said, it’s super stable because it’s slow going on new features.

---

<div class="post-metadata">

**Author:** ![freebird54](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/freebird54/32/83106_2.png) [@freebird54](https://forum.endeavouros.com/u/freebird54)\
**Post date:** [February 28, 2022, 2:35am UTC](https://forum.endeavouros.com/t/how-to-convert-caps-lock-to-hyper-key/24575/7 "2022-02-28T02:35:51Z")

</div>

Easy enough (though not on GUI) to change the Caps lock to another key, or stop it from acting - but I don’t know how to set ‘Hyper’.
