From 7bc66d6e173c4ca3c72bff1f3533365c7ffb66b2 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Tue, 7 Mar 2023 08:34:12 -0600 Subject: [PATCH] refactor(hypr): improve recording videos --- dots/.config/hypr/scripts/screen-cap.bash | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dots/.config/hypr/scripts/screen-cap.bash b/dots/.config/hypr/scripts/screen-cap.bash index 8a27ee1e..90b8c63e 100755 --- a/dots/.config/hypr/scripts/screen-cap.bash +++ b/dots/.config/hypr/scripts/screen-cap.bash @@ -8,7 +8,7 @@ # # Some of this is hacky because I can't get wf-recorder to nicely output GIFs by itself :( -mk-mp4() { +mk-video() { local program_name="Screen Capture" local pid_file="/tmp/mk-gif-pid" local output_type="${1:-MP4}" @@ -38,7 +38,7 @@ mk-mp4() { pwd gifski_tmpoutput="${tmp_dir}/$(mktemp gifski.XXXXXXXXXXX).gif" gifski "${input_tmpfile}" --output "${gifski_tmpoutput}" - wl-copy --type image/gif <"${gifski_tmpoutput}" + wl-copy --type image/png <"${gifski_tmpoutput}" else wl-copy --type video/mp4 <"${input_tmpfile}" fi @@ -47,4 +47,4 @@ mk-mp4() { fi } -mk-mp4 "${@}" +mk-video "${@}"