3 # Purpose: output X clipboard text via flite
4 # Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
5 # Bug-Reports: see http://grml.org/bugs/
6 # License: This file is licensed under the GPL v2.
7 ################################################################################
9 if [ -x /usr/bin/sselp ] ; then # package dwm-tools
10 flite -o play -t "$(sselp)"
11 elif [ -x /usr/bin/xclip ] ; then # package xclip
12 flite -o play -t "$(xclip -o)"
13 elif [ -x /usr/bin/wmiipsel ] ; then # old wmii package
14 flite -o play -t "$(wmiipsel)"
15 elif [ -x /usr/bin/wmiiplumb ] ; then # old wmii package
16 flite -o play -t "$(wmiiplumb)"
17 elif [ -x /usr/bin/wmiplumb ] ; then # deprecated wmi package
18 flite -o play -t "$(wmiplumb)"
20 echo "error, no program for reading X selection found" | flite
23 ## END OF FILE #################################################################