From 68b5649d491d0dad7e6805cee5ee838e247e2a1a Mon Sep 17 00:00:00 2001 From: Valentin Gehrke Date: Mon, 24 Aug 2015 03:55:12 +0200 Subject: [PATCH] bspwm-session not in bspwm anymore. got my own version now --- scripts/bspwm-session.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 scripts/bspwm-session.sh diff --git a/scripts/bspwm-session.sh b/scripts/bspwm-session.sh new file mode 100755 index 0000000..f88db49 --- /dev/null +++ b/scripts/bspwm-session.sh @@ -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 +