Menu

Documentation

Install

Just add to ~/.icewm/menu two line:
include g2ice 
prog "Update menu" file g2ice -f
and add g2ice in ~/.icewm/startup or ~/.xinitrc

Usage

g2ice [OPTIONS]

Options

Key Description Default
-g, --nognome Not show GNOME programs show all GNOME programs
-t, --terminal=STRING Terminal command with -e for execute program in terminal "xterm -e"
-m, --menufolder=STRING Fullpath to folder for save menu files "~/.icewm/menus"
-p, --askpassword=STRING Program for ask root password (for root programs only) gnomesu
-e, --ext=STRING Allowed extention for icons "png;svg;xpm"
-a, --appfolder=STRING Colon separated folders with .desktop files see below
-d, --dirfolder=STRING Colon separated folders with .directory files see below
-c, --category=STRING Category for programs without Category tag "other"
-f, --force Force update menu don't update if directories older than menu file

How it works

1. It will scan followed folders for changes:
/usr/share/applications
/usr/share/applications/YaST2
/usr/share/desktop-menu-patches
/usr/share/desktop-directories
~/Desktop
~/.local/share/applications
~/.local/share/desktop-directories

2. If no changes made (no new applications), then g2ice exit.

3. Create folder for submenu ~/.icewm/menus

4. Create submenu files (one file for one category). Like this:
menus/
   mutimedia
   office
   other

Each file contains something like this:
prog "OpenOffice: Database" ooo-base  ooffice -base
prog "OpenOffice: Presentation" ooo-impress  ooffice -impress
prog "OpenOffice: Text editor" ooo-writer  ooffice -writer

5. Create main menu file ~/.icewm/g2ice. Like this:
menuprog "Audio and Video" applications-multimedia /bin/cat /home/adisk/.icewm/menus/multimedia
menuprog "Office" applications-office /bin/cat /home/adisk/.icewm/menus/office
menuprog "Other" gnome-other /bin/cat /home/adisk/.icewm/menus/other
After IceWM started, it will load root menu only.
Submenu will loaded if it need only. (when user select submenu item)



This is just work!
(c) by adisk