This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/wm/extras/bar/start.bash
2016-05-04 15:18:41 -05:00

20 lines
316 B
Bash
Executable file

#!/usr/bin/env bash
export BAR_PID_FILE="$DOTFILES_PATH/wm_bar.pid"
"$DOTFILES_PATH/wm/extras/bar/run_bar.bash" &
echo "$!" > "$BAR_PID_FILE"
echo "Starting bar with PID $!"
export BAR_PID="$!"
stopbar() {
kill -SIGINT $(cat "$BAR_PID_FILE")
rm -f "$BAR_PID_FILE"
}
export -f stopbar
xdo lower -a wmpanel