dots/scripts/Documents/Scripts/test.sh

10 lines
206 B
Bash
Raw Permalink Normal View History

2024-04-29 19:05:39 +02:00
#!/bin/sh
processes=("polybar" "sxhkd" "pavucontrol" "polkit-dumb-agent")
for process in "${processes[@]}"; do
if ps -p "$process" -o pid > /dev/null; then
kill -9 "$process"
sleep 0.1
fi
done