Remove video recording dmenu
I do no video recording anymore
This commit is contained in:
parent
24ba29e713
commit
6af935b3e4
|
@ -107,26 +107,6 @@ let
|
||||||
text = builtins.readFile ./xdebug.sh;
|
text = builtins.readFile ./xdebug.sh;
|
||||||
};
|
};
|
||||||
|
|
||||||
dmenu-custom-scripts-start-videorecording = writeShellApplication {
|
|
||||||
name = "dmenu-custom-scripts-start-videorecording";
|
|
||||||
|
|
||||||
runtimeInputs = [
|
|
||||||
dmenu
|
|
||||||
];
|
|
||||||
|
|
||||||
text = builtins.readFile ./start-videorecording.sh;
|
|
||||||
};
|
|
||||||
|
|
||||||
dmenu-custom-scripts-stop-videorecording = writeShellApplication {
|
|
||||||
name = "dmenu-custom-scripts-stop-videorecording";
|
|
||||||
|
|
||||||
text = ''
|
|
||||||
kill "$(cat /tmp/runningRecording.txt)"
|
|
||||||
rm /tmp/runningRecording.txt
|
|
||||||
notify-send "Stoped recording"
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
in
|
in
|
||||||
writeShellApplication {
|
writeShellApplication {
|
||||||
name = "dmenu_selection";
|
name = "dmenu_selection";
|
||||||
|
@ -140,8 +120,6 @@ writeShellApplication {
|
||||||
scripts+=("${dmenu-custom-scripts-php-version.name}")
|
scripts+=("${dmenu-custom-scripts-php-version.name}")
|
||||||
scripts+=("${dmenu-custom-scripts-docs-php.name}")
|
scripts+=("${dmenu-custom-scripts-docs-php.name}")
|
||||||
scripts+=("${dmenu-custom-scripts-xdebug.name}")
|
scripts+=("${dmenu-custom-scripts-xdebug.name}")
|
||||||
scripts+=("${dmenu-custom-scripts-start-videorecording.name}")
|
|
||||||
scripts+=("${dmenu-custom-scripts-stop-videorecording.name}")
|
|
||||||
|
|
||||||
OIFS="$IFS" IFS=$'\n'
|
OIFS="$IFS" IFS=$'\n'
|
||||||
scriptsString="''${scripts[*]}"
|
scriptsString="''${scripts[*]}"
|
||||||
|
@ -168,12 +146,6 @@ writeShellApplication {
|
||||||
"${dmenu-custom-scripts-xdebug.name}")
|
"${dmenu-custom-scripts-xdebug.name}")
|
||||||
bash "${dmenu-custom-scripts-xdebug}/bin/${dmenu-custom-scripts-xdebug.name}" || exit 0
|
bash "${dmenu-custom-scripts-xdebug}/bin/${dmenu-custom-scripts-xdebug.name}" || exit 0
|
||||||
;;
|
;;
|
||||||
"${dmenu-custom-scripts-start-videorecording.name}")
|
|
||||||
bash "${dmenu-custom-scripts-start-videorecording}/bin/${dmenu-custom-scripts-start-videorecording.name}" || exit 0
|
|
||||||
;;
|
|
||||||
"${dmenu-custom-scripts-stop-videorecording.name}")
|
|
||||||
bash "${dmenu-custom-scripts-stop-videorecording}/bin/${dmenu-custom-scripts-stop-videorecording.name}" || exit 0
|
|
||||||
;;
|
|
||||||
*)
|
*)
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -1,17 +0,0 @@
|
||||||
availableDevices=$(pacmd list-sources | grep 'name:' | grep 'input' | sed 's/^.*name: <//' | sed 's/>$//')
|
|
||||||
audioDevice=$(echo -e "$availableDevices" | dmenu -i -l 5 -p "Select Audio Input")
|
|
||||||
|
|
||||||
if [ -z "$audioDevice" ]; then
|
|
||||||
exit 1;
|
|
||||||
fi
|
|
||||||
|
|
||||||
recordingFile="/home/daniels/Videos/Recordings/output-$(date +'%F_%T').mkv"
|
|
||||||
ffmpeg -video_size 1920x1080 -framerate 60 -f x11grab -i :0+1920x1080 -f pulse -i "$audioDevice" "$recordingFile" &
|
|
||||||
sleep 1
|
|
||||||
if [ -f "$recordingFile" ];
|
|
||||||
then
|
|
||||||
recordingPid=$!
|
|
||||||
echo "$recordingPid" > /tmp/runningRecording.txt
|
|
||||||
else
|
|
||||||
notify-send -u critical "Could not start recording" "Check screen setup?"
|
|
||||||
fi
|
|
Loading…
Reference in a new issue