First Upload, Welcome to gitea
This commit is contained in:
commit
b77a83a1c6
84 changed files with 13843 additions and 0 deletions
36
dfmpeg/patches/dfmpeg-playlast.diff
Normal file
36
dfmpeg/patches/dfmpeg-playlast.diff
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
diff -up dfmpeg-vanilla/dfmpeg dfmpeg-patch/dfmpeg
|
||||
--- dfmpeg-vanilla/dfmpeg 2022-04-10 11:56:41.414021739 +0200
|
||||
+++ dfmpeg-patch/dfmpeg 2022-04-11 02:40:28.898682361 +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_MEDIA_PLAYER=mpv # Media player to play videos in
|
||||
}
|
||||
|
||||
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\nPlayLast' | dmenu -p 'Record your screen:')" in
|
||||
"Exit") DFMPEG_STATUS=idle && exit 0 ;;
|
||||
- "Start") DFMPEG_STATUS=recording && touch /tmp/dfmpeg-recording && $startrec && exit 0 ;;
|
||||
+ "Start") DFMPEG_STATUS=recording && touch /tmp/dfmpeg-recording && echo $DFMPEG_OUTPUT_FILENAME > /tmp/dfmpeg-filename && $startrec && exit 0 ;;
|
||||
"Stop") $stoprec && rm /tmp/dfmpeg-recording && DFMPEG_STATUS=idle ;;
|
||||
"Configure") $DFMPEG_TERM $DFMPEG_EDITOR $DFMPEG_DOTDIR/dfmpegrc ;;
|
||||
- "Start-No-Audio") DFMPEG_STATUS=recording && $startrec_no_audio && exit 0 ;;
|
||||
+ "Start-No-Audio") DFMPEG_STATUS=recording && touch /tmp/dfmpeg-recording && echo $DFMPEG_OUTPUT_FILENAME > /tmp/dfmpeg-filename && $startrec_no_audio && exit 0 ;;
|
||||
+ "PlayLast") DFMPEG_STATUS=idle && $DFMPEG_MEDIA_PLAYER $(cat /tmp/dfmpeg-filename) && 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-10 11:56:50.093022166 +0200
|
||||
+++ dfmpeg-patch/dfmpegrc 2022-04-11 02:41:13.184684370 +0200
|
||||
@@ -10,3 +10,4 @@ DFMPEG_WH=:0.0 # Width and height, no ne
|
||||
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_MEDIA_PLAYER=mpv # Media player to play videos in
|
||||
34
dfmpeg/patches/dfmpeg-stop-on-run.diff
Normal file
34
dfmpeg/patches/dfmpeg-stop-on-run.diff
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
diff -up dfmpeg-vanilla/dfmpeg dfmpeg-patch/dfmpeg
|
||||
--- dfmpeg-vanilla/dfmpeg 2022-04-10 11:56:41.414021739 +0200
|
||||
+++ dfmpeg-patch/dfmpeg 2022-04-10 11:57:10.317023160 +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_STOP_ON_RUN=false # Stop recording once dfmpeg is loaded if it's already recording
|
||||
}
|
||||
|
||||
defaultConfig
|
||||
@@ -29,6 +30,10 @@ about_screen="dfmpeg $dfmpeg_ver."
|
||||
about_screen_2="Licensed under MIT, written by speedie + contributors."
|
||||
about_screen_3="https://github.com/speediegamer/dfmpeg"
|
||||
|
||||
+case "$DFMPEG_STOP_ON_RUN" in
|
||||
+ "true") ls /tmp/dfmpeg-recording && $stoprec && DFMPEG_STATUS=idle && rm /tmp/dfmpeg-recording && exit 0 ;;
|
||||
+esac
|
||||
+
|
||||
case "$(printf 'Start\nStop\nStart-No-Audio\nConfigure\nExit\nAbout' | dmenu -p 'Record your screen:')" in
|
||||
"Exit") DFMPEG_STATUS=idle && exit 0 ;;
|
||||
"Start") DFMPEG_STATUS=recording && touch /tmp/dfmpeg-recording && $startrec && exit 0 ;;
|
||||
@@ -43,4 +48,4 @@ case "$(printf 'Start\nStop\nStart-No-Au
|
||||
;;
|
||||
esac
|
||||
|
||||
diff -up dfmpeg-vanilla/dfmpegrc dfmpeg-patch/dfmpegrc
|
||||
--- dfmpeg-vanilla/dfmpegrc 2022-04-10 11:56:50.093022166 +0200
|
||||
+++ dfmpeg-patch/dfmpegrc 2022-04-10 11:58:12.963026238 +0200
|
||||
@@ -10,3 +10,4 @@ DFMPEG_WH=:0.0 # Width and height, no ne
|
||||
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_STOP_ON_RUN=false # Stop recording when dfmpeg is loaded if its recording
|
||||
51
dfmpeg/patches/nodmenu-dfmpeg.diff
Normal file
51
dfmpeg/patches/nodmenu-dfmpeg.diff
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
diff -up dfmpeg-vanilla/dfmpeg dfmpeg-patch/dfmpeg
|
||||
--- dfmpeg-vanilla/dfmpeg 2022-04-03 14:45:55.259169925 +0200
|
||||
+++ dfmpeg-patch/dfmpeg 2022-04-03 14:45:07.438172998 +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_USE_DMENU=false # Use dmenu
|
||||
}
|
||||
|
||||
defaultConfig
|
||||
@@ -29,6 +30,31 @@ about_screen="dfmpeg $dfmpeg_ver."
|
||||
about_screen_2="Licensed under MIT, written by speedie + contributors."
|
||||
about_screen_3="https://github.com/speediegamer/dfmpeg"
|
||||
|
||||
+case "$DFMPEG_USE_DMENU" in
|
||||
+ "true") DFMPEG_USE_DMENU=false ;;
|
||||
+ "false")
|
||||
+ clear && echo "dfmpeg $dfmpeg_ver"
|
||||
+ echo "What do you wanna do? Run :help if you need help."
|
||||
+ echo ":q to quit."
|
||||
+ echo -n ">" && read DFMPEG_ACTION
|
||||
+ ;;
|
||||
+esac
|
||||
+
|
||||
+case "$DFMPEG_ACTION" in
|
||||
+ ":q") exit 0 ;;
|
||||
+ ":help") echo -e ":q // Quit\n:help // Display this help screen\n:r // Record with sound\n:rn // Record without sound\n:s // Stop recording\n:c // Open the config file in the defined text editor\n:a // Display the about screen" ;;
|
||||
+ ":r") $startrec && ${0} && exit 0 ;;
|
||||
+ ":rn") $startrec_no_audio && ${0} && exit 0 ;;
|
||||
+ ":s") $stoprec && ${0} && exit 0 ;;
|
||||
+ ":c") $DFMPEG_TERM $DFMPEG_EDITOR $DFMPEG_DOTDIR/dfmpegrc && ${0} && exit 0 ;;
|
||||
+ ":a") $DFMPEG_TERM $DFMPEG_EDITOR $DFMPEG_DOTDIR/dfmpeg_about && ${0} && exit 0 ;;
|
||||
+esac
|
||||
+
|
||||
+case "$DFMPEG_USE_DMENU" in
|
||||
+ "false") DFMPEG_ACTION=:help && exit 0
|
||||
+esac
|
||||
+
|
||||
+# Only do this if DMENU is enabled.
|
||||
case "$(printf 'Start\nStop\nStart-No-Audio\nConfigure\nExit\nAbout' | dmenu -p 'Record your screen:')" in
|
||||
"Exit") DFMPEG_STATUS=idle && exit 0 ;;
|
||||
"Start") DFMPEG_STATUS=recording && $startrec && exit 0 ;;
|
||||
diff -up dfmpeg-vanilla/dfmpegrc dfmpeg-patch/dfmpegrc
|
||||
--- dfmpeg-vanilla/dfmpegrc 2022-04-03 14:45:53.344170048 +0200
|
||||
+++ dfmpeg-patch/dfmpegrc 2022-04-03 14:23:24.205256743 +0200
|
||||
@@ -10,3 +10,4 @@ DFMPEG_WH=:0.0 # Width and height, no ne
|
||||
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_USE_DMENU=false # Use dmenu
|
||||
2
dfmpeg/patches/patch
Normal file
2
dfmpeg/patches/patch
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
This is the directory where patches are stored.
|
||||
Feel free to submit patches.
|
||||
34
dfmpeg/patches/player-dfmpeg.diff
Normal file
34
dfmpeg/patches/player-dfmpeg.diff
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue