disable notifs if recording
This commit is contained in:
parent
efebcca059
commit
742d138bf6
|
@ -100,10 +100,21 @@ MORE_OPTIONS() {
|
||||||
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:')" in
|
||||||
"Exit") STATUS=idle && exit 0 ;;
|
"Exit") STATUS=idle && exit 0 ;;
|
||||||
"Start") touch /tmp/isaudio ; echo "$OUTPUT_FILENAME" > /tmp/outputfilename && STATUS=recording && touch /tmp/dfmpeg-recording
|
"Start") touch /tmp/isaudio ; echo "$OUTPUT_FILENAME" > /tmp/outputfilename && STATUS=recording && touch /tmp/dfmpeg-recording
|
||||||
$startrec && exit 0 ;;
|
$startrec
|
||||||
"Stop") pkill -x ffmpeg ; rm /tmp/dfmpeg-recording ; STATUS=idle ;;
|
pidof dunst > /dev/null && command -v dunstctl > /dev/null && dunstctl set-paused true
|
||||||
"Start without audio") echo "$OUTPUT_FILENAME" > /tmp/outputfilename && STATUS=recording && touch /tmp/dfmpeg-recording
|
|
||||||
$startrec_no_audio && exit 0 ;;
|
exit 0 ;;
|
||||||
|
"Stop") [ ! -e /tmp/dfmpeg-recording ] && exit 1
|
||||||
|
pkill -x ffmpeg ; rm /tmp/dfmpeg-recording
|
||||||
|
pidof dunst > /dev/null && command -v dunstctl > /dev/null && dunstctl set-paused false
|
||||||
|
STATUS=idle
|
||||||
|
;;
|
||||||
|
"Start without audio")
|
||||||
|
echo "$OUTPUT_FILENAME" > /tmp/outputfilename && STATUS=recording && touch /tmp/dfmpeg-recording
|
||||||
|
pidof dunst > /dev/null && command -v dunstctl > /dev/null && dunstctl set-paused true
|
||||||
|
$startrec_no_audio
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
"Play last") DFMPEG_STATUS=idle && $MEDIA_PLAYER "$(cat /tmp/outputfilename)" && exit 0 ;;
|
"Play last") DFMPEG_STATUS=idle && $MEDIA_PLAYER "$(cat /tmp/outputfilename)" && exit 0 ;;
|
||||||
"More options") MORE_OPTIONS && exit 0 ;;
|
"More options") MORE_OPTIONS && exit 0 ;;
|
||||||
"") exit 0 ;;
|
"") exit 0 ;;
|
||||||
|
|
Loading…
Reference in a new issue