3 export XDIALOG_HIGH_DIALOG_COMPAT
=true
;
5 dialog
="dialog"; #(dialog|whiptail|Xdialog|gdialog);
6 tmpfile
="/tmp/caudacui-$$.tmp";
16 "$dialog" --title "Harvie's Remote Textmode UI for Audacious & amixer" --no-shadow --menu '' 0 0 0\
17 ' -t' '|> PLAY/PAUSE'\
23 ' 100%' '-- VOLUME MAX
'\
24 ' 5%+' '-- VOLUME
+5dB
'\
25 ' 5%-' '-- VOLUME
-5dB'\
26 ' 0%- toggle
' 'xx MUTE
'\
28 if [[ "$?" != 0 ]]; then
29 kill "$!"; >/dev/null 2>&1
34 if ( grep '%' -F "$tmpfile" ); then
35 amixer -c 0 sset Master $(cat "$tmpfile");
38 audacious -n 0 $(cat "$tmpfile");