mirror of
https://github.com/polybar/polybar.git
synced 2024-11-11 13:50:56 -05:00
17 lines
389 B
Bash
Executable file
17 lines
389 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
if [[ "$1" != "noconfirm" ]]; then
|
|
read -p "Send SIGKILL to terminate processes? [Y/n] " -r choice
|
|
|
|
[[ "${choice^^}" == "Y" ]] || {
|
|
echo "Aborting..."; exit
|
|
}
|
|
fi
|
|
|
|
pgrep -f "(lemonbuddy_wrapper|^lemonb(uddy|ar))" | xargs kill -9 >/dev/null 2>&1
|
|
|
|
if [[ $? -eq 0 ]]; then
|
|
echo "Kill signals successfully sent"
|
|
else
|
|
echo "Failed to send kill signal ($?)"
|
|
fi
|