Re: editing menus

Bernd Eggink <[email protected]> Mon, 09 Apr 2012 10:54:21 +0200
Newsgroups gmane.comp.window-managers.icewm.user
Message-ID <[email protected]>
On 08.04.2012 20:19, Frank McCormick wrote:
> On 07/04/12 04:54 PM, Bernd Eggink wrote:
>> On 07.04.2012 22:41, Frank McCormick wrote:
>>> Is there a **working** menu editor for IceWm ?
>>
>> Yes: Any text editor. Open ~/.icewm/menu and change it as you like, it's
>> a text file with a pretty simple structure. No need to use heavyweight
>> GUI programs.
>
>
>     The advantage of IceMc for me was the ability for find icons for the
> entries quickly...it's a pain in a text editor although I have done it.
> You also got a preview of the icon to decide whether it was appropriate.

You know that you can restart icewm by sending it the HUP signal? Just 
say 'kill -HUP pid', where pid is icewm's PID, or use this little bash 
script:

#-----------------------------------------------
#!/bin/bash

pid=$$

while true
do
     stat=($(</proc/$pid/stat))
     (( pid == 1 )) && exit 1
     [[ ${stat[1]} == '(icewm)' ]] && break
     pid=${stat[3]}
done

kill -HUP $pid
#-----------------------------------------------

Bernd

-- 
http://sudrala.de

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2