X-Git-Url: http://git.grml.org/?p=grml-scripts.git;a=blobdiff_plain;f=usr_bin%2Fxsay;h=6adab30e9f15c9052ab74b3d4d4264af333dd511;hp=11242cbd7ae45310fbc8657ed3e349c6d81655f8;hb=24c1bd1dc1799b4124782c9f66267d2c4f974bb7;hpb=211befef6763c7cc998989345022348861c3bbf0 diff --git a/usr_bin/xsay b/usr_bin/xsay index 11242cb..6adab30 100755 --- a/usr_bin/xsay +++ b/usr_bin/xsay @@ -7,14 +7,18 @@ # Latest change: Fre Jul 14 01:29:42 CEST 2006 [mika] ################################################################################ -if [ -x /usr/bin/wmiipsel ] ; then - flite -o play -t "$(wmiipsel)" +if [ -x /usr/bin/sselp ] ; then # package dwm-tools + flite -o play -t "$(sselp)" +elif [ -x /usr/bin/xclip ] ; then # package xclip + flite -o play -t "$(xclip -o)" +elif [ -x /usr/bin/wmiipsel ] ; then # old wmii package + flite -o play -t "$(wmiipsel)" +elif [ -x /usr/bin/wmiiplumb ] ; then # old wmii package + flite -o play -t "$(wmiiplumb)" +elif [ -x /usr/bin/wmiplumb ] ; then # deprecated wmi package + flite -o play -t "$(wmiplumb)" else - if [ -x /usr/bin/wmiiplumb ] ; then - flite -o play -t "$(wmiiplumb)" - else - flite -o play -t "$(wmiplumb)" - fi + echo "error, no program for reading X selection found" | flite fi ## END OF FILE #################################################################