From 534168b18262eae42352d983c86961536319daf2 Mon Sep 17 00:00:00 2001 From: speedie Date: Mon, 3 Apr 2023 16:27:56 +0200 Subject: [PATCH] replace ------ separators --- src/speedwm-dfmpeg | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/speedwm-dfmpeg b/src/speedwm-dfmpeg index ccb23ad..29f0ffc 100755 --- a/src/speedwm-dfmpeg +++ b/src/speedwm-dfmpeg @@ -74,30 +74,30 @@ 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 - "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") exit 0 ;; - "..") $0 && exit 0 ;; - "") exit 0 ;; + 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") exit 0 ;; + "..") $0 && exit 0 ;; + "") exit 0 ;; esac } # More options MORE_OPTIONS() { - case "$(printf 'Encode\nConvert\nConfigure\n------\n..\nExit' | $RUNLAUNCHER -l 40 -p 'More options')" 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 ;; + 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 ;; 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