LinHES Forums http://forum.linhes.org/ |
|
Script Popup Window Confirmation? http://forum.linhes.org/viewtopic.php?f=17&t=19871 |
Page 1 of 1 |
Author: | opel70 [ Mon May 18, 2009 2:01 pm ] |
Post subject: | Script Popup Window Confirmation? |
Hello, I am in the process of consolidating remotes. One of the things I have done is configure on of the buttons on my remote to toggle the power on my projector and my receiver, using irexec and a script file. I would like to fine tune this task to prompt the user before turning off the projector, just in case the button is pressed accidentally. Is there a way for a bash script to present a popup window that could prompt for confirmation before executing the power off? Thanks, |
Author: | bigB [ Mon May 18, 2009 5:17 pm ] |
Post subject: | |
Hi, Look up "zenity". It is a command line dialogue box interface. Very basic but might do what you want. If only there was an equivalent that had mythtv styling. BigB, |
Author: | opel70 [ Tue May 19, 2009 7:57 am ] |
Post subject: | |
Thanks, I'll check it out. |
Author: | opel70 [ Fri May 22, 2009 7:50 am ] |
Post subject: | |
Zenity isn't available on KM (since it is running FluxBox I suppose), but with the name I was able to search and find gxmessage. Using that I have updated my power-toggle.sh script to prompt prior to powering off the projector. |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |