Code Monkey home page Code Monkey logo

hermit's Introduction

Hermit

Application launcher for GNU/Linux.

A simple tabbed window shows icons that will launch commands specified by .desktop files found in /usr/share/applications and user defined locations.

Licence

Public domain.

Author

nullpathos

Requirements / dependencies

  • python 2.7
  • python-gtk2
  • (optional) python-keybinder, use your distribution repositories or https://github.com/engla/keybinder
  • other python libraries: os, glib, shlex, lxml, syslog, signal

Usage

It's just one python script, download it, run it (use python or change permissions and execute).

By default, hermit will appear after pressing Super_R (right Meta key) if python-keybinder is installed.

Alternatively, send hermit a USR1 signal: pkill -USR1 -x hermit.py (this should work if hermit was executed directly). Use your desktop environment to map a global hotkey or some other action to this command.

Hermit will create an XML file of settings in ~/.config/hermit/

Create an XML file tabs.xml (see included example_tabs.xml) in the same directory to specify your own choice of .desktop launchers. (restart hermit to load)

Change settings directly in the XML file (needs restart) or using the last tab.

Example Openbox integration

Add to the end of ~/.config/openbox/autostart :

python /wherever_you_saved_it/hermit.py &

xdotool behave_screen_edge --delay 0 --quiesce 500 left exec --sync xte "key Super_R" &

This will show hermit when your mouse pointer touches the left screen edge by simulating a press of the hotkey, in this case Super_R. You'll have to install xdotool and xautomation (which contains the xte command).

Alternatively, have hermit appear when right-clicking on the desktop background: Edit ~/.config/openbox/rc.xml to change the selection within the "Root" context:

 <mousebind button="Right" action="Press">
   <action name="Execute">
     <command>xte "key Super_R"</command>
   </action>
 </mousebind>
 <mousebind button="C-Right" action="Press">
   <action name="ShowMenu">
     <menu>root-menu</menu>
   </action>
 </mousebind>

The normal openbox menu will still be available using control-rightclick.

Future stuff

  • Inclusion of other system locations (other than /usr/share/applications).
  • More comprehensive settings, including a hotkey chooser.
  • User defined tabs/launcher editor.
  • Support for programs that require a terminal.

hermit's People

Contributors

nullpathos avatar

Stargazers

Aditya Singh avatar Kenn avatar

Watchers

Kenn avatar  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.