From 344abe93b9cd896776071997415d71e3f384ad6e Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sun, 23 Jul 2023 23:04:04 -0500 Subject: [PATCH] refactor(hypr): use card0 for screencap --- dots/.config/hypr/scripts/screen-cap.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dots/.config/hypr/scripts/screen-cap.bash b/dots/.config/hypr/scripts/screen-cap.bash index 90b8c63e..37053c59 100755 --- a/dots/.config/hypr/scripts/screen-cap.bash +++ b/dots/.config/hypr/scripts/screen-cap.bash @@ -30,7 +30,7 @@ mk-video() { tmp_dir="$(mktemp -d)" cd "${tmp_dir}" input_tmpfile="${tmp_dir}/$(mktemp wf-recorder.XXXXXXXXXXX).mp4" - wf-recorder -g "$(slurp)" -f "${input_tmpfile}" -c h264_vaapi -d /dev/dri/renderD128 -- & + wf-recorder -g "$(slurp)" -f "${input_tmpfile}" -c h264_vaapi -d /dev/dri/card0 -- & printf "%s" $! >"${pid_file}" wait if [[ "${output_type}" == "gif" ]]; then