I write this code for use in enlightenment like I use %a in windowmaker
it's not easy to understand and not very clean and have some hack, but that work well.
(see attached file)

I use that in my enlightenment menu :
"SSH" NULL exec "/home/croqmort/bin/menu_wm_a.py 'Eterm -e /bin/sh -c \'ssh %a(login 
:,croqmort)@%a(hostname :)\'' 'sh'"
"Run..." NULL exec "/home/croqmort/bin/menu_wm_a.py '%a(Type command to run)' 'Run...'"
"Run in console..." NULL exec "/home/croqmort/bin/menu_wm_a.py 'Eterm -e /bin/sh -c 
%a(Type command to run)' 'Run in console...'"
"Run in console and wait" NULL exec "/home/croqmort/bin/menu_wm_a.py 'Eterm --pause -e 
/bin/sh -c %a(Type command to run)' 'Run in console and wait...'"

I hope that can be used by other person that me ;)

Attachment: menu_wm_a.py
Description: Binary data

Reply via email to