xmessage fits to my needs. Thank you for the hint.<br><br>I would prefer use xmessage-like builtin Openbox for theme / skin consistency.<br><br>Thank you again<br><br><div class="gmail_quote">On 9 September 2010 08:23, Cedric Sodhi <span dir="ltr"><<a href="mailto:manday@gmx.net">manday@gmx.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">I think he meant how to use this very function which is included in openbox, not what other programs exist to achieve the same.<div>
<div></div><div class="h5"><br>
<br>
On 09/09/2010 07:15 AM, Anthony Thyssen wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
On Wed, 8 Sep 2010 20:53:23 +0200<br>
MangezDesChips<<a href="mailto:mangezdeschips@gmail.com" target="_blank">mangezdeschips@gmail.com</a>> wrote:<br>
| Hello,<br>
|<br>
| I love the<prompt> openbox Global action. I have a script that checks if<br>
| some devices are mounted before launching audio calculations. If the devices<br>
| are not mounted I want to display a YES/NO prompt box like openbox one. Do<br>
| you know if openbox permit to launch that event from batch ?<br>
|<br>
| Thanks for help !!<br>
|<br>
| Kheraud<br>
<br>
You can pop up prompt requests like that (and more) using quite a number<br>
of X window utilities.<br>
<br>
Zenity is a gnome tool that is very common.<br>
<br>
zenity --question --title "Question" --text 'To be of not to be?'<br>
echo "the result was $?"<br>
<br>
The return status tell you what was selected.<br>
Has LOTS more features.<br>
<br>
<br>
xprompt String input entry program<br>
<br>
<br>
xmenu popup a menu of choices<br>
<br>
<br>
XMessage is another (older) one that also can be used to display files<br>
or have multiply answers. I use it for a multi-question logout...<br>
<br>
buttons='Poweroff:14,Reboot:13,Restart:12,Logout:11,Cancle:0'<br>
<br>
xmessage -name xlogout -title xlogout \<br>
-geometry $logout_geometry -fg Gold -bg Navy -buttons "$buttons" \<br>
-xrm '*message.borderWidth: 0' \<br>
-xrm '*message.scrollVertical: Never' \<br>
-xrm '*Font: -*-new cent*-bold-r-normal--18-*' \<br>
'Are You Sure?'<br>
<br>
case $result in<br>
0) # ---- Cancel the Action ----<br>
;; # just loop -- do nothing<br>
11) # User specifically asked to logout<br>
LOGOUT=true<br>
break<br>
;;<br>
12) # ---- Restart all Clients ----<br>
xclosedown # close all client windows<br>
killall -q gnome-panel # just in case.<br>
killall -q gconfd-2 # gnome fails to start if this is running<br>
# If a client was killed without removing the motif drag property then<br>
# motif clients on the rerun will Bus Error as property does not point<br>
# to a vaild window. Ensure it is removed, so this does not happen.<br>
xprop -root -remove _MOTIF_DRAG_WINDOW 2>/dev/null<br>
# Now re-start clients and loop<br>
clients<br>
;;<br>
13) # logout and reboot machine<br>
REBOOT=true<br>
break<br>
;;<br>
14) # logout and poweroff<br>
POWEROFF=true<br>
break<br>
;;<br>
*) # ---- ErrorExit (1) ----<br>
break # Window or Display was killed<br>
;;<br>
esac<br>
<br>
<br>
Their are many many many such programs out their!!!<br>
Most I have tried out at some point in time.<br>
<br>
<br>
<br>
Anthony Thyssen ( System Programmer )<<a href="mailto:A.Thyssen@griffith.edu.au" target="_blank">A.Thyssen@griffith.edu.au</a>><br>
--------------------------------------------------------------------------<br>
The human race will never know happiness, as long as the words<br>
"If only..." can still be spoken. -- Unknown<br>
--------------------------------------------------------------------------<br>
Anthony's Castle <a href="http://www.cit.griffith.edu.au/%7Eanthony/" target="_blank">http://www.cit.griffith.edu.au/~anthony/</a><br>
_______________________________________________<br>
openbox mailing list<br>
<a href="mailto:openbox@icculus.org" target="_blank">openbox@icculus.org</a><br>
<a href="http://icculus.org/mailman/listinfo/openbox" target="_blank">http://icculus.org/mailman/listinfo/openbox</a><br>
<br>
</blockquote>
<br>
_______________________________________________<br>
openbox mailing list<br>
<a href="mailto:openbox@icculus.org" target="_blank">openbox@icculus.org</a><br>
<a href="http://icculus.org/mailman/listinfo/openbox" target="_blank">http://icculus.org/mailman/listinfo/openbox</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>K. Heraud<br>