diff --git a/.config/helix/scripts/typst-zathura.fish b/.config/helix/scripts/typst-zathura.fish index b8e2299a..b3df94fc 100755 --- a/.config/helix/scripts/typst-zathura.fish +++ b/.config/helix/scripts/typst-zathura.fish @@ -39,16 +39,16 @@ if test -z "$parent_pid" qecho "Couldn't find parent hx process!" return $ret end -echo $parent_pid # opens zathura, watching for helix closing function zopen --wraps zathura begin zathura "$argv[1]" &>/dev/null & set zathura_pid $last_pid - notify-send "$zathura_pid" - inotifywait -qq -e delete_self /proc/$parent_pid - notify-send "Zathura killed" + notify-send zathura "$zathura_pid" + notify-send hx $parent_pid + inotifywait -e delete_self /proc/$parent_pid + notify-send "helix killed" kill $zathura_pid end & end