blob: 1450a846a6370868eb775f42434ec19a3cc21236 (
plain)
1
2
3
4
5
6
7
8
9
|
pids=$(ps -AO pid | awk '/stbar.sh|newsboat-fetch.sh/ {print $1}')
# pids=$(pstree -pla | grep stbar | sed 's,|,,g' | sed 's/ //g' | sed 's/^ //g' | sed 's/ .*//' | sed 's/[^0-9]*//g')
# pids2=$(ps -AO pid | grep "sh ./newsboat-fetch.sh" | sed 's/S.*//g' | sed 's/^ *//g')
echo $pids
$(sleep 3 && xsetroot -name "") & disown
doas kill -KILL $pids
|