dots/scripts/Documents/Scripts/test.sh
2024-04-29 19:05:39 +02:00

10 lines
206 B
Bash
Executable file

#!/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