mirror of
https://github.com/vale981/bspwm
synced 2025-03-05 18:01:37 -05:00
Fix indentation in example display manager session
This commit is contained in:
parent
7df593f4e8
commit
805f2de24a
1 changed files with 8 additions and 8 deletions
|
@ -38,20 +38,20 @@ export BSPWM_SOCKET=${state_path}/bspwm-socket
|
||||||
# Trap: make sure everything started in ~/.config/bspwm/autostart is
|
# Trap: make sure everything started in ~/.config/bspwm/autostart is
|
||||||
# signalled when this script exits or dies. Also clean up $state_path.
|
# signalled when this script exits or dies. Also clean up $state_path.
|
||||||
function on_exit {
|
function on_exit {
|
||||||
for child in $(jobs -p); do
|
for child in $(jobs -p); do
|
||||||
jobs -p | grep -q $child && kill $child
|
jobs -p | grep -q $child && kill $child
|
||||||
done
|
done
|
||||||
# Extra paranoia
|
# Extra paranoia
|
||||||
[[ -d "${state_path}" && -w "${state_path}" ]] && rm -rf -- "${state_path}"
|
[[ -d "${state_path}" && -w "${state_path}" ]] && rm -rf -- "${state_path}"
|
||||||
}
|
}
|
||||||
|
|
||||||
trap on_exit EXIT SIGHUP SIGINT SIGTERM
|
trap on_exit EXIT SIGHUP SIGINT SIGTERM
|
||||||
|
|
||||||
# Environment and autostart:
|
# Environment and autostart:
|
||||||
source_these=(
|
source_these=(
|
||||||
"/etc/profile",
|
"/etc/profile",
|
||||||
"${HOME}/.profile",
|
"${HOME}/.profile",
|
||||||
"${XDG_CONFIG_HOME:-"$HOME/.config"}/bspwm/autostart"
|
"${XDG_CONFIG_HOME:-"$HOME/.config"}/bspwm/autostart"
|
||||||
)
|
)
|
||||||
|
|
||||||
for file in "${source_these[@]}"; do
|
for file in "${source_these[@]}"; do
|
||||||
|
|
Loading…
Add table
Reference in a new issue