Tommimon / super-key

Fork of Pop Launcher Super-Key: Binds the Super-Key to a chosen command

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

super-key-title

Bind the Super-Key to a custom action

Overview

This extension is a fork of Pop Launcher Super-Key. Instead of showing the Pop launcher the user can choose to perform a custom action.

The action performed can be chosen in the extension settings by entering the command to execute. Default command is nautilus which opens the default gnome file manager, I chose this just because I expect almost everyone to have it installed.

Why Super Key?

The typical use is to bind another launcher of choice (such as Albert) to Super. But there are really no restriction, you can set any command you want.

Using gnome settings to bind shortcuts is impossible to use Super both as a modifier and as a proper key: If I bind something to Super the action will fire before I press anything elese, and I will not be able to bind something to Super + A for example.

Super Key solves this by activating the super action on release of the key if no other shortcut was activated in the meanwhile.

Installation & Setup

  • Download zip from the releases section
  • Extract in a folder named super-key@tommimon.github.com
  • Add the super-key@tommimon.github.com folder to GNOME extensions folder*
  • Restart the GNOME shell**
  • Open (or restart) the Extensions app (or Tweaks app)
  • Enable 'Super Key'
  • Click 'Settings' button of 'Super Key'
  • Set the desired command and close
  • Restart the GNOME shell again**
  • Enjoy

* Default folder should be ~/.local/share/gnome-shell/extensions/ for manually installed extensions if there isn't this directory, create it.

** Hit Alt + F2 type r and hit Enter, if you prefer you can log out instead.

How does it work

The default behaviour of Super is already both as key and modifier but the effect is to show the application overlay. This extension changes the shell code in order to run a custom command instead.

About

Fork of Pop Launcher Super-Key: Binds the Super-Key to a chosen command

License:GNU General Public License v3.0


Languages

Language:JavaScript 90.7%Language:Shell 9.3%