fluxbox_apps_menu 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/README.md +12 -6
- data/lib/fluxbox_apps_menu/desktop_file.rb +1 -1
- data/lib/fluxbox_apps_menu/menu.rb +8 -5
- data/lib/fluxbox_apps_menu/version.rb +1 -1
- metadata +2 -2
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -33,7 +33,15 @@ the _~/.fluxbox_ folder
|
|
33
33
|
|
34
34
|
$ fluxbox_apps_menu menuconfig
|
35
35
|
|
36
|
-
|
36
|
+
When the application menu is built it can be included in
|
37
|
+
your main fluxbox menu file (usually *~/.fluxbox/menu*) adding
|
38
|
+
the row below where you want display it:
|
39
|
+
|
40
|
+
[include] (~/.fluxbox/menu-apps)
|
41
|
+
|
42
|
+
## Get help
|
43
|
+
|
44
|
+
Where to start
|
37
45
|
|
38
46
|
$ fluxbox_apps_menu help
|
39
47
|
|
@@ -41,12 +49,10 @@ Get help for a specific task
|
|
41
49
|
|
42
50
|
$ fluxbox_apps_menu help build
|
43
51
|
$ fluxbox_apps_menu help menuconfig
|
52
|
+
|
53
|
+
More help
|
44
54
|
|
45
|
-
|
46
|
-
your main fluxbox menu file (usually *~/.fluxbox/menu*) adding
|
47
|
-
the row below where you want display it:
|
48
|
-
|
49
|
-
[include] (~/.fluxbox/menu-apps)
|
55
|
+
- The wiki page: https://github.com/fabiomux/fluxbox_apps_menu/wiki
|
50
56
|
|
51
57
|
## Contributing
|
52
58
|
|
@@ -30,11 +30,14 @@ module FluxboxAppsMenu
|
|
30
30
|
private
|
31
31
|
|
32
32
|
def menu_item(label, icon, type = 'exec', command = nil)
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
"
|
33
|
+
str = []
|
34
|
+
str << "[#{type}]"
|
35
|
+
str << "(#{label.gsub(/(?<!\\)\)/, '\)')})" unless label.to_s.empty?
|
36
|
+
str << "{#{command}}" unless command.nil?
|
37
|
+
str << "<#{icon}>" unless icon.to_s.empty?
|
38
|
+
|
39
|
+
# "[#{type}]#{label}#{command}#{icon}"
|
40
|
+
str.join(' ')
|
38
41
|
end
|
39
42
|
|
40
43
|
def traverse_menu(menu, cat, label, selected_index = nil)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluxbox_apps_menu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2015-02-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|