AutoYADM commit: 2025-04-22 14:35:12
This commit is contained in:
parent
0e0db43622
commit
43787f46f3
1 changed files with 4 additions and 4 deletions
|
@ -39,16 +39,16 @@ if test -z "$parent_pid"
|
||||||
qecho "Couldn't find parent hx process!"
|
qecho "Couldn't find parent hx process!"
|
||||||
return $ret
|
return $ret
|
||||||
end
|
end
|
||||||
echo $parent_pid
|
|
||||||
|
|
||||||
# opens zathura, watching for helix closing
|
# opens zathura, watching for helix closing
|
||||||
function zopen --wraps zathura
|
function zopen --wraps zathura
|
||||||
begin
|
begin
|
||||||
zathura "$argv[1]" &>/dev/null &
|
zathura "$argv[1]" &>/dev/null &
|
||||||
set zathura_pid $last_pid
|
set zathura_pid $last_pid
|
||||||
notify-send "$zathura_pid"
|
notify-send zathura "$zathura_pid"
|
||||||
inotifywait -qq -e delete_self /proc/$parent_pid
|
notify-send hx $parent_pid
|
||||||
notify-send "Zathura killed"
|
inotifywait -e delete_self /proc/$parent_pid
|
||||||
|
notify-send "helix killed"
|
||||||
kill $zathura_pid
|
kill $zathura_pid
|
||||||
end &
|
end &
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue