ctpv/sh/end.sh

16 lines
330 B
Bash
Raw Normal View History

2022-06-23 13:54:23 +02:00
setup_image 1
2022-05-25 23:57:50 +02:00
2022-05-26 01:48:27 +02:00
# tell ctpv server to exit
2022-07-17 11:00:59 +02:00
printf '\0' > "$fifo"
# Kill running icat
icat_pid="$(kitty_icat_pid)"
[ -e "$icat_pid" ] && pid="$(cat "$icat_pid")" && [ -e "/proc/$pid" ] && kill "$pid"
# A dirty hack to fix lf issue where ctpv runs before quit
if is_kitty; then
kitty_clear &
{ sleep 1; kitty_clear; } &
wait
fi