A simple gem that adds executable and library for adding shortcuts to programs. Check the rubygems link here
This gem was named after Yondaime Hokage's main technique Flying Raijin Jutsu (or Hiraishin no Jutsu, in Rōmaji), which 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.
Using rubygems:
gem install hiraishin
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
- add support to other GUIs (like MATE, GNOME etc)
- add some tests
Please feel free to open issues and suggest improvements or functionality to this gem.