Fix screen recording on Intel graphics (#669)
* Fix screen recording on Intel graphics Use wf-recorder for Intel graphics instead of wl-screenrec due to VAAPI compatibility issues that prevent recording from starting. * combining greps for nvidia and intel graphics * Update omarchy-cmd-screenrecord
This commit is contained in:
parent
4e136ded68
commit
ac37fb7ccd
@ -13,7 +13,7 @@ screenrecording() {
|
||||
notify-send "Screen recording starting..." -t 1000
|
||||
sleep 1
|
||||
|
||||
if lspci | grep -qi 'nvidia'; then
|
||||
if lspci | grep -Eqi 'nvidia|intel.*graphics'; then
|
||||
wf-recorder -f "$filename" -c libx264 -p crf=23 -p preset=medium -p movflags=+faststart "$@"
|
||||
else
|
||||
wl-screenrec -f "$filename" --ffmpeg-encoder-options="-c:v libx264 -crf 23 -preset medium -movflags +faststart" "$@"
|
||||
|
Loading…
x
Reference in New Issue
Block a user