Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kill previous instances of golden #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ bspc rule -a retroarch state=floating
bspc rule -a plasmashell state=floating border=off layer=normal manage=off center=true
bspc rule -a krunner state=floating

exec ~/Projects/golden/run.sh &
pkill golden.sh &
~/Projects/golden/golden.sh &
```

Bugs, issues and questions all welcome in the Issues section. Thank you!
12 changes: 12 additions & 0 deletions golden.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

# grabbed this badboy from https://stackoverflow.com/a/246128/149987
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"

# kill any exististing golden.py processes
ps xu | grep golden.py | grep -v grep | awk '{ print $2 }' | xargs kill -9 &

while true
do
bspc subscribe node_focus | $DIR/golden.py
done