aboutsummaryrefslogtreecommitdiff
path: root/env/.local/bin/system/stbar/killbar.sh
blob: b639ed1feb58b03060da32bdb9fd544efd02de26 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash
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