Giter Site home page Giter Site logo

mysuper's Introduction

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 Rofi) 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 [email protected]
  • Add the [email protected] 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.

mysuper's People

Contributors

tommimon avatar valyrius avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.