# How can I change the default keybinding for the Super key?

**URL:** <https://discourse.ubuntubudgie.org/t/how-can-i-change-the-default-keybinding-for-the-super-key/2223>\
**Category:** Budgie Desktop\
**Created:** [July 2, 2019, 8:12am UTC](https://discourse.ubuntubudgie.org/t/how-can-i-change-the-default-keybinding-for-the-super-key/2223 "2019-07-02T08:12:14Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Monteiro](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.ubuntubudgie.org/monteiro/32/1487_2.png) [@Monteiro](https://discourse.ubuntubudgie.org/u/Monteiro)\
**Post date:** [July 2, 2019, 8:12am UTC](https://discourse.ubuntubudgie.org/t/how-can-i-change-the-default-keybinding-for-the-super-key/2223/1 "2019-07-02T08:12:14Z")

</div>

I’m trying to customize my Ubuntu Budgie 18.04 desktop to have a look and behaviour similar to MacOS.

I have successfully installed [SlingSwarm](https://github.com/echo-devim/slingswarm), which is a GTK3 port of Slingscold, and it serves as a full screen launcher for my programs. I have placed this on my dock, and it works like a charm.

But now, I’m trying to figure out how can I change the Super key to launch this new menu instead of the default Budgie Menu.

I tried the most obvious solution of using the Dconf editor, and editing the org/gnome/mutter/overlay-key to disable the Super key.

But even with this, in the keyboard settings I can’t create a new keyboard shortcut, because the Super key is not accepted.

So I suppose that this function is hardcoded.

Is there any configuration text file that I can edit to change what program is activated with the Super key?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![fossfreedom](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.ubuntubudgie.org/fossfreedom/32/1405_2.png) [@fossfreedom](https://discourse.ubuntubudgie.org/u/fossfreedom)\
**Post date:** [July 2, 2019, 8:38am UTC](https://discourse.ubuntubudgie.org/t/how-can-i-change-the-default-keybinding-for-the-super-key/2223/2 "2019-07-02T08:38:52Z")

</div>

Hi and welcome,

The Super (left) key is set in dconf-editor:

navigate to `org.gnome.mutter.overlay_key` and you will see that the default “Super\_L” is defined. You can remove that or change the keybinding - so a little surprise you are having difficulty remapping it.

---

<div class="post-metadata">

**Author:** ![Monteiro](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.ubuntubudgie.org/monteiro/32/1487_2.png) [@Monteiro](https://discourse.ubuntubudgie.org/u/Monteiro)\
**Post date:** [July 2, 2019, 8:51am UTC](https://discourse.ubuntubudgie.org/t/how-can-i-change-the-default-keybinding-for-the-super-key/2223/3 "2019-07-02T08:51:12Z")

</div>

Thanks, but the thing that I want to change is not the Super key, but the action that invokes the super key.

Currently, when you press the super key, the Budgie Menu is launched.

But the thing that I want to configure, is that instead of launching the Budgie Menu, the Super key will launch the slingswarm-launcher command, opening the new full screen menu that I have installed.

In the dconf section that you are referring, you can set the value of the key. But you can’t change the action that is invoked.

---

<div class="post-metadata">

**Author:** ![fossfreedom](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.ubuntubudgie.org/fossfreedom/32/1405_2.png) [@fossfreedom](https://discourse.ubuntubudgie.org/u/fossfreedom)\
**Post date:** [July 2, 2019, 9:09am UTC](https://discourse.ubuntubudgie.org/t/how-can-i-change-the-default-keybinding-for-the-super-key/2223/4 "2019-07-02T09:09:24Z")

</div>

The action invoked is a budgie action - the current menu applet responds to that action.

> <https://github.com/solus-project/budgie-desktop/blob/master/src/wm/wm.vala#L386>

So what will be required is a tiny applet that responds to the same action and invokes slingswarm

> <https://github.com/solus-project/budgie-desktop/blob/master/src/applets/budgie-menu/BudgieMenu.vala#L182>

---

<div class="post-metadata">

**Author:** ![Monteiro](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.ubuntubudgie.org/monteiro/32/1487_2.png) [@Monteiro](https://discourse.ubuntubudgie.org/u/Monteiro)\
**Post date:** [July 2, 2019, 9:35am UTC](https://discourse.ubuntubudgie.org/t/how-can-i-change-the-default-keybinding-for-the-super-key/2223/5 "2019-07-02T09:35:29Z")

</div>

Thanks for the detailed answer!

But my knowledge of code outside of some basic notions of HTML and CSS is zero, and this is my first time with a Linux desktop.

My skills to create a custom Budgie applet are not still there 🙂

So I suppose that I will need to live without having my new menu activated with the super key.

Regards!

---

<div class="post-metadata">

**Author:** ![fossfreedom](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.ubuntubudgie.org/fossfreedom/32/1405_2.png) [@fossfreedom](https://discourse.ubuntubudgie.org/u/fossfreedom)\
**Post date:** [July 2, 2019, 9:43am UTC](https://discourse.ubuntubudgie.org/t/how-can-i-change-the-default-keybinding-for-the-super-key/2223/6 "2019-07-02T09:43:19Z")

</div>

I’ve created a new “mini app” called [budgie-extras-daemon](https://github.com/UbuntuBudgie/budgie-extras/tree/master/budgie-extras-daemon) over the weekend. It reads simple config files where you define a shortcut key combination and then invokes a command.

I’ll need to test if it can take as the shortcut “super\_L” - will ping here later.

---

<div class="post-metadata">

**Author:** ![metastork](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@metastork](https://discourse.ubuntubudgie.org/u/metastork)\
**Post date:** [December 16, 2019, 7:38am UTC](https://discourse.ubuntubudgie.org/t/how-can-i-change-the-default-keybinding-for-the-super-key/2223/7 "2019-12-16T07:38:48Z")

</div>

A small dirty hack to re-bind the super key to whatever you like, which works for me:

1. Open dconf-editor
2. go to /com/solus-project/budgie-wm/experimental-enable-run-dialog-as-menu and enable this option
3. Create a superkey.sh bash script in your preferred location, make it executable (chmod +x superkey.sh), and enter in it the command(s) you wish to be activated by the super key.
4. Then, in a terminal, enter:  
sudo mv /usr/bin/budgie-run-dialog /usr/bin/budgie-run-dialog.old  
sudo ln -s /LOCATIONHERE/superkey.sh /usr/bin/budgie-run-dialog

This hack may not survive Ubuntu or Budgie upgrades, but doesn’t take too long to re-enable. It also breaks the Budgie Run menu (bound to F2 by default), but you can rebind Alt-F2 to /usr/bin/budgie-run-dialog.old or use any number of third party run menus or app launchers instead.

---

<div class="post-metadata">

**Author:** ![ClaudioLazaro](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.ubuntubudgie.org/claudiolazaro/32/2964_2.png) [@ClaudioLazaro](https://discourse.ubuntubudgie.org/u/ClaudioLazaro)\
**Post date:** [November 23, 2020, 1:15am UTC](https://discourse.ubuntubudgie.org/t/how-can-i-change-the-default-keybinding-for-the-super-key/2223/8 "2020-11-23T01:15:43Z")

</div>

My friend this is the way on ubuntu budgie

```auto

# Example file for services that require global keybinding
# services drop a .bde extension file into
# /etc/budgie-extras-daemon/bde/ or the install location appended with bde
# either/both toggle / command need to be specified
#
# [Daemon]
# shortcut=key shortcut to bind e.g. <ctrl><alt>s
# toggle=GSettings full-gsettings-path key-is-bool-to-toggle-when-shortcut-activated
# command=command line to execute when shortcut activated
# onlyactivate=GSettings full-gsettings-path key-is-bool-bind-shortcut-only-when-true
# overlay=GSettings full-gsettings-path key-is-string-set-to-empty
# used with onlyactivate to set key to '' if true or reset to default key
# value if onlyactivate is false
# name=short name to describe what this shortcut is all about.

```
