bspwm: Tidy up the startup script, add OpenBSD support
Still needs bash, though TODO: Fix that
This commit is contained in:
parent
61dced0547
commit
5c314595a0
@ -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
|
||||||
|
kill $(pgrep service)
|
||||||
|
done
|
||||||
|
# Don't start the compositor in a VM
|
||||||
|
if [[ $(hostname) != "vm"* ]]; then
|
||||||
|
compton &
|
||||||
fi
|
fi
|
||||||
sxhkd &
|
# Different startup for OpenBSD and Linux
|
||||||
if [[ $(pgrep polybar) ]]; then
|
if [[ $(uname) == "Linux" ]]; then
|
||||||
killall polybar
|
compton &
|
||||||
fi
|
$HOME/.config/polybar/start.sh &
|
||||||
$HOME/.config/polybar/start.sh &
|
sxhkd &
|
||||||
if [[ $(pgrep compton) ]]; then
|
else
|
||||||
killall compton
|
sxhkd &
|
||||||
fi
|
|
||||||
compton&
|
|
||||||
if [[ $(pgrep conky) ]]; then
|
|
||||||
killall conky
|
|
||||||
fi
|
fi
|
||||||
|
# Start these all the time regardless of platform
|
||||||
conky&
|
conky&
|
||||||
if [[ $(pgrep dunst) ]]; then
|
|
||||||
killall dunst
|
|
||||||
fi
|
|
||||||
dunst&
|
dunst&
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user