You are not logged in.

#1 2011-06-03 19:36:47

simke
Member
From: croatia
Registered: 2009-04-01
Posts: 30

xdg for awesom?

i dont know why it is not in wiki https://wiki.archlinux.org/index.php/XdgMenu

xdg generate menus for awesome two

$ xdg_menu --format awesome --root-menu /etc/xdg/menus/arch-applications.menu >~/.config/awesome/xdg-menu.lua

it generate something like this

 menu98edb85b00d9527ad5acebe451b3fae6 = {     {"Avant Window Navigator", "avant-window-navigator"},
..

menud334dfcea59127bedfcdbe0a3ee7f494 = {     {"DraftSight", "\"/opt/dassault-systemes/draftsight/bin/DraftSight\""},
...

menuc8205c7636e728d448c2774e6a4a944b = {     {"Avahi SSH Server Browser", "/usr/bin/bssh"},
...

xdgmenu = {    {"Accessories", menu98edb85b00d9527ad5acebe451b3fae6},
    {"Graphics", menud334dfcea59127bedfcdbe0a3ee7f494},
    {"Internet", menuc8205c7636e728d448c2774e6a4a944b},

i just dont know how to call that file in rc.lua to be a submenu.  i'am not in lua... so any ideas?

Last edited by simke (2011-06-03 19:58:37)


I'm a Paladin with 18 charisma and 97 hit points. I can use my helm of disintegration and do one D4 damage as my half-elf mage wields his plus-five holy avenger.

Offline

#2 2011-06-03 20:07:43

Varg
Member
From: Belgium
Registered: 2010-07-07
Posts: 272

Re: xdg for awesom?

To me it looks like the lua syntax used in Awesome's rc.lua. You can probably just past it in rc.lua and replace the default example menu.

Offline

#3 2011-06-03 20:11:42

simke
Member
From: croatia
Registered: 2009-04-01
Posts: 30

Re: xdg for awesom?

yes. i use it that way.

but when i install new application, copy paste again! there is a simple way, but i dont know how! big_smile

Last edited by simke (2011-06-03 20:32:38)


I'm a Paladin with 18 charisma and 97 hit points. I can use my helm of disintegration and do one D4 damage as my half-elf mage wields his plus-five holy avenger.

Offline

#4 2011-06-03 20:39:04

simke
Member
From: croatia
Registered: 2009-04-01
Posts: 30

Re: xdg for awesom?

it is simple! big_smile

$ xdg_menu --format awesome --root-menu /etc/xdg/menus/arch-applications.menu >~/.config/awesome/xdg-menu.lua

and add to rc.lua require("xdg-menu"), and  {"xdg", xdgmenu} to menu

...
require("xdg-menu")
...

...
 mymainmenu = awful.menu({ items = { { "awesome", myawesomemenu, beautiful.awesome_icon },
                                      {"xdg", xdgmenu},
...

Last edited by simke (2011-06-03 20:48:01)


I'm a Paladin with 18 charisma and 97 hit points. I can use my helm of disintegration and do one D4 damage as my half-elf mage wields his plus-five holy avenger.

Offline

Board footer

Powered by FluxBB