bspwm: Stop trying to kill services that don't exist

This commit is contained in:
Salt 2018-07-17 17:10:21 -05:00
parent 560e4abc83
commit da7166381a

View File

@ -87,7 +87,9 @@ xrdbupdate
feh --randomize --bg-fill ~/Pictures/Wallpapers/.active &
services="sxhkd polybar conky dunst compton"
for service in $services; do
kill $(pgrep $service)
if $(pgrep $service); then
kill $(pgrep $service)
fi
done
# Don't start the compositor in a VM
if [[ $(hostname) != "vm"* ]]; then