|
@ -266,31 +266,34 @@ def fluxboxmenu(): |
|
|
global seticon |
|
|
global seticon |
|
|
global submenu |
|
|
global submenu |
|
|
if submenu is True: |
|
|
if submenu is True: |
|
|
|
|
|
spacing = ' ' |
|
|
if seticon == True: |
|
|
if seticon == True: |
|
|
app_icon = icon_full_path(applications_icon) |
|
|
app_icon = icon_full_path(applications_icon) |
|
|
print '[submenu] ('+applications+') <'+app_icon+'>' |
|
|
print '[submenu] ('+applications+') <'+app_icon+'>' |
|
|
else: |
|
|
else: |
|
|
print '[submenu] ('+applications+')' |
|
|
print '[submenu] ('+applications+')' |
|
|
|
|
|
else: |
|
|
|
|
|
spacing = '' |
|
|
for i in menu(): |
|
|
for i in menu(): |
|
|
category = i[0] |
|
|
category = i[0] |
|
|
if seticon == True: |
|
|
if seticon == True: |
|
|
cat_icon = category_icon(category) |
|
|
cat_icon = category_icon(category) |
|
|
cat_icon = icon_full_path(cat_icon) |
|
|
cat_icon = icon_full_path(cat_icon) |
|
|
if cat_icon: |
|
|
if cat_icon: |
|
|
print ' [submenu] ('+category+') <'+cat_icon+'>' |
|
|
print spacing+'[submenu] ('+category+') <'+cat_icon+'>' |
|
|
else: |
|
|
else: |
|
|
print ' [submenu] ('+category+')' |
|
|
print spacing+'[submenu] ('+category+')' |
|
|
else: |
|
|
else: |
|
|
print ' [submenu] ('+category+')' |
|
|
print spacing+'[submenu] ('+category+')' |
|
|
for j in i[1]: |
|
|
for j in i[1]: |
|
|
name = j[0] |
|
|
name = j[0] |
|
|
icon = j[1] |
|
|
icon = j[1] |
|
|
command = j[2] |
|
|
command = j[2] |
|
|
if icon is None: |
|
|
if icon is None: |
|
|
print ' [exec] ('+name+') {'+command+'}' |
|
|
print spacing+' [exec] ('+name+') {'+command+'}' |
|
|
else: |
|
|
else: |
|
|
print ' [exec] ('+name+') {'+command+'} <'+icon+'>' |
|
|
print spacing+' [exec] ('+name+') {'+command+'} <'+icon+'>' |
|
|
print ' [end] # ('+category+')' |
|
|
print spacing+'[end] # ('+category+')' |
|
|
if submenu is True: |
|
|
if submenu is True: |
|
|
print '[end] # ('+applications+')' |
|
|
print '[end] # ('+applications+')' |
|
|
|
|
|
|
|
|