/usr/bin/xaumix is in aumix-common 2.9.1-4.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 | #!/bin/sh
# xaumix: run aumix in ncurses mode in a terminal emulator under X
# copyright (C) 1999,2000 Paul Slootman <paul@debian.org>
# released under GNU General Public License
#
# - Initial idea and version by Paul Slootman
#
# - Searching for different terminal emulator and the accompanying options
# by Trevor Johnson <trevor@jpj.net> (and others?)
#
# - Reworked to first select a suitable terminal emulator and then select
# the appropriate options by Paul Slootman to enable usage of debian's
# alternatives mechanism, where the local admin can select what the
# default terminal emulator is. (I don't know if other distributions have
# similar mechanisms?)
#
# - Modified by Eduard Bloch <blade@debian.org> to try x-terminal-emulator and
# rely on the new behaviour of the menu system.
#
# - Modified by Stefan Ott <stefan@ott.net> to only use x-terminal-emulator
set -e # exit upon any error
# Are we under X11?
if test -z "$DISPLAY"; then
exec aumix
exit 1
fi
XTERM=$( readlink -f /etc/alternatives/x-terminal-emulator )
# set defaults
XTERMOPTIONS='-T aumix -n aumix'
GEOMETRY='-geometry 79x${LINES}'
SCHEME='-C ansi'
case "${XTERM##*/}" in
gnome-terminal.wrapper)
XTERMOPTIONS='-t aumix --name aumix'
GEOMETRY='--geometry 79x${LINES}'
;;
kvt) XTERMOPTIONS='-no_scrollbar -sl 0 -caption aumix -n aumix'
GEOMETRY='-vt_geometry 79x${LINES}'
SCHEME='-C xterm'
;;
konsole)
XTERMOPTIONS=' -sl 0 -nowelcome -caption aumix -n aumix'
GEOMETRY='' #'-vt_sz 79x{LINES}' doesn't work
SCHEME='-C xterm'
;;
xterm*|rxvt*|aterm|lxterm|uxterm|koi8rxterm)
XTERMOPTIONS='-rv +sb -T aumix -n aumix'
;;
kterm) XTERMOPTIONS=' -T aumix -n aumix'
;;
wterm) XTERMOPTIONS='-T aumix -name aumix -rv +sb'
;;
Eterm) XTERMOPTIONS='--scrollbar=0 --term-name xterm -T aumix -n aumix'
GEOMETRY='-g 79x${LINES}'
;;
# need to check geometry option for eterm
# Is this the same as Eterm ("Enlightened Terminal Emulator
# for X Windows[sic]")?
eterm) XTERMOPTIONS='-T aumix -n aumix'
GEOMETRY=''
SCHEME='-C xterm'
;;
*) if [ ! -z $XTERM ] ; then
# we have x-terminal-emulator symlink that should allways support -e and -T.
# If it doesn't, file bugs against the corresponding program
echo "Unknown X terminal emulator. xaumix will invoke $XTERM now
(pointed by your x-terminal-emulator alternatives entry)"
# safer options
XTERMOPTIONS=""
GEOMETRY=""
SCHEME=""
#XTERM="x-terminal-emulator"
fi
esac
if test -z "$XTERM"; then
echo "xaumix: no terminal emulator found" >&2
exit 1
fi
if [ ! -z "$GEOMETRY" ]; then
LINES=`aumix -q | wc -l`
LINES=`expr $LINES + 1`
eval GEOMETRY=\"$GEOMETRY\"
fi
exec x-terminal-emulator $GEOMETRY $XTERMOPTIONS -e aumix $SCHEME
exit 1
|