/appchoo

Application Chooser with Timeout and Heartbeat support

Primary LanguageCCreative Commons Zero v1.0 UniversalCC0-1.0

appchoo - Application Chooser with Timeout
Written in 2012 by <Ahmet Inan> <ainan@mathematik.uni-freiburg.de>
To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.
You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.

appchoo takes a list of newline delimited apps and their pictures on stdin.
after EOF it will fit those pictures to the screen and make them available
as buttons. clicking (or touching on a touchscreen) one of the pictures will
emit the app to stdout and exit.

so you can choose apps to start like this:

# exec `echo -e 'app1.jpg ./app1\napp2.jpg ./app2' | ./appchoo`

another example but now hiding the cursor with the "-c" option:

# exec $(./appchoo -c < applist)

use "-t NUM" to set timeout to NUM seconds.

use "-d 'CMD'" to emit 'CMD' instead of 'true' on timeout.

lines beginning with '#' get ignored:

# cat applist
app1.jpg ./app1
#app2.jpg ./app2
app3.jpg ./app

you can add hidden corners:

@NE echo north/east corner clicked
@SE echo south/east corner clicked
@SW echo south/west corner clicked
@NW echo north/west corner clicked