bspwm-session not in bspwm anymore. got my own version now
This commit is contained in:
parent
e64b733d9b
commit
68b5649d49
1 changed files with 24 additions and 0 deletions
24
scripts/bspwm-session.sh
Executable file
24
scripts/bspwm-session.sh
Executable file
|
@ -0,0 +1,24 @@
|
||||||
|
#!/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 &
|
||||||
|
|
||||||
|
exec bspwm
|
||||||
|
|
Loading…
Reference in a new issue