fix(hypr): make sure wf-recorder saves in /tmp/*
This commit is contained in:
parent
5685b248fe
commit
b2df9370a4
@ -23,13 +23,16 @@ mk-gif() {
|
||||
else
|
||||
local input_tmpfile
|
||||
notify-send "Starting ${program_name}" "Recording GIF of Selected Region" -a "${program_name}"
|
||||
input_tmpfile="/tmp/$(mktemp wf-recorder.XXXXXXXXXXX).mp4"
|
||||
wf-recorder -g "$(slurp)" -f "${input_tmpfile}" &
|
||||
printf "%s" $! >"${pid_file}"
|
||||
wait
|
||||
gifski "${input_tmpfile}" --output "${input_tmpfile}.gif"
|
||||
wl-copy --type image/gif <"${input_tmpfile}.gif"
|
||||
rm -f "${pid_file}"
|
||||
(
|
||||
cd "/tmp"
|
||||
input_tmpfile="/tmp/$(mktemp wf-recorder.XXXXXXXXXXX).mp4"
|
||||
wf-recorder -g "$(slurp)" -f "${input_tmpfile}" &
|
||||
printf "%s" $! >"${pid_file}"
|
||||
wait
|
||||
gifski "${input_tmpfile}" --output "${input_tmpfile}.gif"
|
||||
wl-copy --type image/gif <"${input_tmpfile}.gif"
|
||||
rm -f "${pid_file}"
|
||||
)
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user