Haven't seen a reply to this yet, so... On Wed, Nov 03, 2004 at 08:54:56PM -0200, Roberto Winter wrote: > Hi there, > I'm currently running enlightenment 0.16.6 on Debian unstable. > And I'm also using licq. The idea is: (don't know if anyone has seen > macOsX, but there this happens, a icon pops up from the engage-like > thing they have) > I'd like to have the licq window 'unshade' everytime a new message arrives. > is there a way to do this, like a command line program, or maybe one > that can be done? > there are two ways this could be done: > - adjusting licq to execute a command everytime a message arrives.
That's what I do. In the OnEvent tab under the options dialogue in Licq, you can specify a command to run when events occur, along with event-dependent parameters to pass to the command. I set the command to a shell script called icq_event (attached), and use the parameters to pass a sound file to play. The icq_event script uses the shade_window script (both attached). The HOME and PATH variables at the top of the icq_event script might need modifying. Hope that helps, Toby Cubitt -- PhD Student Quantum Information Theory group Max Planck Institute for Quantum Optics Garching, Germany email: [EMAIL PROTECTED] web: www.dr-qubit.org
#!/bin/bash # command to use when playing sound files PLAY="artsplay" # make sure directory containing shade_window script is in PATH PATH="$HOME/bin/enlightenment:$PATH" # get Licq window ID LICQ_ID=`eesh -ewait "window_list" | grep 'Licq' | awk '{print $1}'` if [ -z "$LICQ_ID" ]; then exit 1 fi # unshade Licq window shade_window -u $LICQ_ID # play sound file if one is supplied as an argument if [ "$1" ]; then echo $PLAY $1 $PLAY $1 fi
#!/bin/bash getopts 'sut' OPTS # option -s shades window if [ $OPTS == 's' ]; then if eesh -ewait "win_op $2 shade ?" | grep off > /dev/null; then eesh -e "win_op $2 shade" fi # option -u unshades window elif [ $OPTS == 'u' ]; then if eesh -ewait "win_op $2 shade ?" | grep on > /dev/null; then eesh -e "win_op $2 shade" fi # option -t toggles shaded state of window elif [ $OPTS == 't' ]; then eesh -e "win_op $2 shade" # default if unknown or no option given is to toggle elif [ $OPTS == '?' ]; then eesh -e "win_op $2 shade" else eesh -e "win_op $1 shade" fi