From 18ab75019da846facf5fe6dcd4883185f0e0ca27 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sun, 18 Sep 2022 18:46:30 -0500 Subject: [PATCH] style(hypr): use vars correctly in script --- dots/.config/hypr/scripts/screen-cap.bash | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dots/.config/hypr/scripts/screen-cap.bash b/dots/.config/hypr/scripts/screen-cap.bash index cb256036..adc5ab67 100755 --- a/dots/.config/hypr/scripts/screen-cap.bash +++ b/dots/.config/hypr/scripts/screen-cap.bash @@ -7,6 +7,8 @@ # wf-recorder # - notification daemon: https://archlinux.org/packages/?name=notification-daemon # - 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() { local program_name="Screen Capture" @@ -19,7 +21,8 @@ mk-gif() { rm -rf "${pid_file}" exit 1 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 local input_tmpfile notify-send "Starting ${program_name}" "Recording GIF of Selected Region" -a "${program_name}"