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