Skip to content

Ghardo/ruby-openbox-menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

this lib is deprecated use https://github.com/Ghardo/openbox-pipemenu

git clone https://github.com/Ghardo/ruby-openbox-menu.git openboxmenu
cd openboxmenu
gem build OpenboxMenu.gemspec
sudo gem install OpenboxMenu-0.0.3.gem

Requires nokogiri
sudo gem install nokogiri

# Example
#!/usr/bin/env ruby
require 'openboxmenu'

obm = OpenboxMenu.new
obm.separator('Title Root')

obm.menu('_1 Menu 1', 'menu1')
obm.menu('_2 Menu 2', 'menu2')

obm.menu('Title Menu 1', 'menu1')

obm.item("m1_menu1", "Menu 1 Item 1", 'menu1')
obm.item("m1_menu2", "Open Device Menu", 'menu1')
obm.item("m2_menu1", "Menu 2 Item 1", 'menu2')

obm.execute("m1_menu1", '/bin/bash')
obm.showmenu("m1_menu2", 'devices')

obm.execute("m2_menu1", '/bin/bash')

puts obm.getXml

About

A simple class to generate a Openbox Menu in Ruby

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages