bspwm: Tidy up the startup script, add OpenBSD support

Still needs bash, though
TODO: Fix that
This commit is contained in:
Salt 2018-07-17 16:35:16 -05:00
parent 61dced0547
commit 5c314595a0

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# Copyright (c) 2017 rehashedsalt/vintagesalt # Copyright (c) 2017 rehashedsalt/vintagesalt
# #
@ -85,24 +85,23 @@ xrdbupdate
## SERVICES AND DAEMONS ## SERVICES AND DAEMONS
feh --randomize --bg-fill ~/Pictures/Wallpapers/.active & feh --randomize --bg-fill ~/Pictures/Wallpapers/.active &
if [[ $(pgrep sxhkd) ]]; then services=(sxhkd polybar conky dunst compton)
killall sxhkd for service in $services; do
fi kill $(pgrep service)
sxhkd & done
if [[ $(pgrep polybar) ]]; then # Don't start the compositor in a VM
killall polybar if [[ $(hostname) != "vm"* ]]; then
fi
$HOME/.config/polybar/start.sh &
if [[ $(pgrep compton) ]]; then
killall compton
fi
compton & compton &
if [[ $(pgrep conky) ]]; then
killall conky
fi fi
# Different startup for OpenBSD and Linux
if [[ $(uname) == "Linux" ]]; then
compton &
$HOME/.config/polybar/start.sh &
sxhkd &
else
sxhkd &
fi
# Start these all the time regardless of platform
conky& conky&
if [[ $(pgrep dunst) ]]; then
killall dunst
fi
dunst& dunst&