2015-08-24 03:55:12 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
on_exit() {
|
|
|
|
for child in $(jobs -p); do
|
|
|
|
jobs -p | grep -q $child && kill $child
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
trap on_exit EXIT SIGHUP SIGINT SIGTERM
|
|
|
|
|
|
|
|
source_these=(
|
|
|
|
"/etc/profile"
|
|
|
|
"${HOME}/.profile"
|
|
|
|
"${XDG_CONFIG_HOME:-"$HOME/.config"}/bspwm/autostart"
|
|
|
|
)
|
|
|
|
|
|
|
|
for file in "${source_these[@]}"; do
|
|
|
|
[ -r "${file}" ] && . "${file}"
|
|
|
|
done
|
|
|
|
|
|
|
|
sxhkd &
|
|
|
|
|
2015-11-21 19:04:52 +01:00
|
|
|
exec bspwm -c $HOME/.config/bspwm/bspwmrc
|
2015-08-24 03:55:12 +02:00
|
|
|
|