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