replace ------ separators

This commit is contained in:
speedie 2023-04-03 16:27:56 +02:00
parent 67a684d3d0
commit 534168b182

View file

@ -74,10 +74,10 @@ about_screen_4="https://speedie.gq/spmenu-scripts"
encodeopts() {
case "$(printf 'Encode last recording\nEncode video\n------\n..\nExit' | $RUNLAUNCHER -l 40 -p 'Encoding options')" in
case "$(printf 'Encode last recording\nEncode video\n\n..\nExit' | $RUNLAUNCHER -l 40 -p 'Encoding options' -g 1)" in
"Encode last recording") encode ; exit 0 ;;
"Encode video") echo "$(echo "" | $RUNLAUNCHER -l 1 $GRIDARG $GRIDNUM -p "What file do you want to encode?")" > /tmp/outputfilename && encode ; exit 0 ;;
"------") exit 0 ;;
"") exit 0 ;;
"Exit") exit 0 ;;
"..") $0 && exit 0 ;;
"") exit 0 ;;
@ -86,18 +86,18 @@ encodeopts() {
# More options
MORE_OPTIONS() {
case "$(printf 'Encode\nConvert\nConfigure\n------\n..\nExit' | $RUNLAUNCHER -l 40 -p 'More options')" in
case "$(printf 'Encode\nConvert\nConfigure\n\n..\nExit' | $RUNLAUNCHER -l 40 -p 'More options' -g 1)" in
"Encode last recording") [ "$ENCODE" != "false" ] && encode ; exit 0 ;;
"Encode video") echo "$(echo "" | $RUNLAUNCHER -l 1 $GRIDARG $GRIDNUM -p "What file do you want to encode?")" > /tmp/outputfilename && encode ; exit 0 ;;
"Encode") encodeopts ; exit 0 ;;
"Configure") $TERM $EDITOR "$DFMPEG_DOTDIR/dfmpegrc" ; exit 0 ;;
"") exit 0 ;;
"..") $0 && exit 0 ;;
"------") exit 0 ;;
"") exit 0 ;;
esac
}
case "$(printf 'Start\nStop\nStart without audio\nPlay last\n------\nMore options\nAbout\nExit' | $RUNLAUNCHER -l 40 -p 'Record your screen:')" in
case "$(printf 'Start\nStop\nStart without audio\nPlay last\n\nMore options\nAbout\nExit' | $RUNLAUNCHER -l 40 -p 'Record your screen:' -g 1)" in
"Exit") STATUS=idle && exit 0 ;;
"Start") touch /tmp/isaudio ; echo "$OUTPUT_FILENAME" > /tmp/outputfilename && STATUS=recording && touch /tmp/dfmpeg-recording
$startrec