laka3000 / hiraishin

A simple gem that adds executable and library for adding shortcuts to programs (http://rubygems.org/gems/hiraishin)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Travis (.org) branch Gem Gem GitHub

Hiraishin

A simple gem that adds executable and library for adding shortcuts to programs. Check the rubygems link here

Name

This gem was named after Yondaime Hokage's main technique Flying Raijin Jutsu (or Hiraishin no Jutsu, in Rōmaji), witch allows the user to instantaneously teleport themselves to a previously marked location. Similarly, this gem allow its user to create shortcuts and bind them to commands, allowing instant access.

Installing

Using rubygems:

gem install hiraishin

Usage

Command line utility usage example:

hiraishin -n browser -c /usr/bin/google-chrome -k Ctrl,Alt,Shift,c

Command line utility help:

Usage: hiraishin -n NAME -c path/to/command -k keys,to,be,pressed
    -n, --name=NAME                  Name of the shortcut
    -c, --command=COMMAND            Command to be executed
    -k, --keys=KEYS                  Keys to bind shortcut to
    -h, --help                       Prints this help

Using on a ruby program:

require 'hiraishin'


Hiraishin.add_shortcut_to_cinnamon 'browser', '/usr/bin/google-chrome', :Ctrl, :Alt, :Shift, :c

To do

  • add support to other GUIs (like MATE, GNOME etc)
  • add some tests

Contributing

Please feel free to open issues and suggest improvements or functionality to this gem.

About

A simple gem that adds executable and library for adding shortcuts to programs (http://rubygems.org/gems/hiraishin)


Languages

Language:Ruby 100.0%