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

20 lines
316 B
Bash
Raw Normal View History

2016-01-07 02:16:53 -06:00
#!/usr/bin/env bash
export BAR_PID_FILE="$DOTFILES_PATH/wm_bar.pid"
2016-01-07 02:16:53 -06:00
"$DOTFILES_PATH/wm/extras/bar/run_bar.bash" &
2016-01-11 09:22:54 -06:00
echo "$!" > "$BAR_PID_FILE"
echo "Starting bar with PID $!"
2016-01-07 02:16:53 -06:00
export BAR_PID="$!"
2016-01-07 02:16:53 -06:00
stopbar() {
kill -SIGINT $(cat "$BAR_PID_FILE")
rm -f "$BAR_PID_FILE"
}
export -f stopbar
2016-01-11 09:22:54 -06:00
xdo lower -a wmpanel
2016-01-12 15:02:12 -06:00