35 lines
1.8 KiB
Diff
35 lines
1.8 KiB
Diff
diff -up dfmpeg-vanilla/dfmpeg dfmpeg-patch/dfmpeg
|
|
--- dfmpeg-vanilla/dfmpeg 2022-04-03 00:24:23.548491608 +0200
|
|
+++ dfmpeg-patch/dfmpeg 2022-04-03 00:24:30.992491129 +0200
|
|
@@ -17,6 +17,7 @@ defaultConfig() {
|
|
DFMPEG_DMENU="dmenu" # Path to dmenu
|
|
DFMPEG_TERM="$TERMINAL" # Terminal to use when editing the configuration file.
|
|
DFMPEG_EDITOR="vim" # Editor to edit the config file with
|
|
+ DFMPEG_PLAYER="mpv" # Player to use
|
|
}
|
|
|
|
defaultConfig
|
|
@@ -29,12 +30,13 @@ about_screen="dfmpeg $dfmpeg_ver."
|
|
about_screen_2="Licensed under MIT, written by speedie + contributors."
|
|
about_screen_3="https://github.com/speediegamer/dfmpeg"
|
|
|
|
-case "$(printf 'Start\nStop\nStart-No-Audio\nConfigure\nExit\nAbout' | dmenu -p 'Record your screen:')" in
|
|
+case "$(printf 'Start\nStop\nStart-No-Audio\nConfigure\nExit\nAbout\nPlay' | dmenu -p 'Record your screen:')" in
|
|
"Exit") DFMPEG_STATUS=idle && exit 0 ;;
|
|
"Start") DFMPEG_STATUS=recording && $startrec && exit 0 ;;
|
|
"Stop") $stoprec && DFMPEG_STATUS=idle ;;
|
|
"Configure") $DFMPEG_TERM $DFMPEG_EDITOR $DFMPEG_DOTDIR/dfmpegrc ;;
|
|
"Start-No-Audio") DFMPEG_STATUS=recording && $startrec_no_audio && exit 0 ;;
|
|
+ "Play") DFMPEG_PLAY=$(ls -A --color=auto $DFMPEG_OUTPUT_PATH | dmenu) && $DFMPEG_PLAYER $DFMPEG_OUTPUT_PATH/$DFMPEG_PLAY && exit 0 ;;
|
|
"About")
|
|
echo $about_screen > $DFMPEG_DOTDIR/dfmpeg_about
|
|
echo $about_screen_2 >> $DFMPEG_DOTDIR/dfmpeg_about
|
|
diff -up dfmpeg-vanilla/dfmpegrc dfmpeg-patch/dfmpegrc
|
|
--- dfmpeg-vanilla/dfmpegrc 2022-04-03 00:25:16.410488211 +0200
|
|
+++ dfmpeg-patch/dfmpegrc 2022-04-03 00:24:57.511489425 +0200
|
|
@@ -10,3 +10,4 @@ DFMPEG_WH=:0.0 # Width and height, no ne
|
|
DFMPEG_DMENU=dmenu # Path to dmenu
|
|
DFMPEG_TERM=st # Terminal to use when editing the configuration file.
|
|
DFMPEG_EDITOR=vim # Editor to edit the config file with
|
|
+DFMPEG_PLAYER=mpv # Player to play videos in
|