X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=usr_bin%2Fxsay;h=2375477541407dbf6ead8ba55d1956bc3067e71b;hb=fc7146df8539cc7121bab9223660da14818d084e;hp=11242cbd7ae45310fbc8657ed3e349c6d81655f8;hpb=e720deae78f1eda5e6f62629606c194f16796762;p=grml-scripts-core.git diff --git a/usr_bin/xsay b/usr_bin/xsay index 11242cb..2375477 100755 --- a/usr_bin/xsay +++ b/usr_bin/xsay @@ -4,17 +4,20 @@ # Authors: grml-team (grml.org), (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2. -# 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 #################################################################