forked from Shinonome/dots-hyprland
fix record script for non-nvidia
This commit is contained in:
@@ -1,8 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
## hmm
|
|
||||||
# --pixel-format yuv420p
|
|
||||||
|
|
||||||
getdate() {
|
getdate() {
|
||||||
date '+%Y%m%d_%H-%M-%S'
|
date '+%Y%m%d_%H-%M-%S'
|
||||||
}
|
}
|
||||||
@@ -17,13 +14,13 @@ if pgrep wf-recorder > /dev/null; then
|
|||||||
else
|
else
|
||||||
notify-send "Starting recording" 'recording_'"$(getdate)"'.mp4' -a 'record-script.sh'
|
notify-send "Starting recording" 'recording_'"$(getdate)"'.mp4' -a 'record-script.sh'
|
||||||
if [[ "$1" == "--sound" ]]; then
|
if [[ "$1" == "--sound" ]]; then
|
||||||
wf-recorder -c h264_vaapi -d /dev/dri/renderD128 -C aac -f './recording_'"$(getdate)"'.mp4' -t --geometry "$(slurp)" --audio="$(getaudiooutput)" & disown
|
wf-recorder --pixel-format yuv420p -f './recording_'"$(getdate)"'.mp4' -t --geometry "$(slurp)" --audio="$(getaudiooutput)" & disown
|
||||||
elif [[ "$1" == "--fullscreen-sound" ]]; then
|
elif [[ "$1" == "--fullscreen-sound" ]]; then
|
||||||
wf-recorder -c h264_vaapi -d /dev/dri/renderD128 -C aac -f './recording_'"$(getdate)"'.mp4' -t --audio="$(getaudiooutput)" & disown
|
wf-recorder --pixel-format yuv420p -f './recording_'"$(getdate)"'.mp4' -t --audio="$(getaudiooutput)" & disown
|
||||||
elif [[ "$1" == "--fullscreen" ]]; then
|
elif [[ "$1" == "--fullscreen" ]]; then
|
||||||
wf-recorder -c h264_vaapi -d /dev/dri/renderD128 -C aac -f './recording_'"$(getdate)"'.mp4' -t & disown
|
wf-recorder --pixel-format yuv420p -f './recording_'"$(getdate)"'.mp4' -t & disown
|
||||||
else
|
else
|
||||||
wf-recorder -c h264_vaapi -d /dev/dri/renderD128 -C aac -f './recording_'"$(getdate)"'.mp4' -t --geometry "$(slurp)" & disown
|
wf-recorder --pixel-format yuv420p -f './recording_'"$(getdate)"'.mp4' -t --geometry "$(slurp)" & disown
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user