style(hypr): use vars correctly in script
This commit is contained in:
parent
b2df9370a4
commit
18ab75019d
@ -7,6 +7,8 @@
|
|||||||
# wf-recorder
|
# wf-recorder
|
||||||
# - notification daemon: https://archlinux.org/packages/?name=notification-daemon
|
# - notification daemon: https://archlinux.org/packages/?name=notification-daemon
|
||||||
# - wl-clipboard: https://github.com/bugaevc/wl-clipboard
|
# - wl-clipboard: https://github.com/bugaevc/wl-clipboard
|
||||||
|
#
|
||||||
|
# Some of this is hacky because I can't get wf-recorder to nicely output GIFs by itself :(
|
||||||
|
|
||||||
mk-gif() {
|
mk-gif() {
|
||||||
local program_name="Screen Capture"
|
local program_name="Screen Capture"
|
||||||
@ -19,7 +21,8 @@ mk-gif() {
|
|||||||
rm -rf "${pid_file}"
|
rm -rf "${pid_file}"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
inotifywait -e delete_self /tmp/mk-gif-pid && notify-send "Saved ${program_name}" "Successfully Saved Screen Capture to Clipboard" -a "${program_name}"
|
inotifywait -e delete_self "${pid_file}" &&
|
||||||
|
notify-send "Saved ${program_name}" "Successfully Saved Screen Capture to Clipboard" -a "${program_name}"
|
||||||
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}"
|
||||||
|
Loading…
Reference in New Issue
Block a user