New backup 2024-04-10 13:30:04
This commit is contained in:
parent
3440207ce4
commit
6a68411f86
1 changed files with 13 additions and 1 deletions
|
@ -1,7 +1,19 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
getpids() {
|
||||||
|
pids=( $(pgrep swaybg) )
|
||||||
|
}
|
||||||
|
|
||||||
pgrep swaybg
|
killpids(){
|
||||||
|
for i in ${pids[@]};do
|
||||||
|
kill "${i}" && echo "killed ${i}"
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
getpids
|
||||||
|
#echo ${pids[@]}
|
||||||
|
|
||||||
|
killpids
|
||||||
|
|
||||||
exit
|
exit
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue