7 Commits

Author SHA1 Message Date
anntnzrb
e78420475e Use SIGTERM instead of SIGKILL
After proper research, `SIGKILL` should be prevented if possible;
Use `SIGTERM` instead

Source:
[In what order should I send signals to gracefully shutdown processes?](https://stackoverflow.com/a/37692419)
2020-08-04 12:56:25 -05:00
anntnzrb
636c35a126 Use pkill instead of killall
The `killall` command doesn't come shipped in all distributions (Void
Linux as an example), on the other hand `pkill` does.

Unsure what the exact intention on each call is but the `-9` signal can be
replaced with `-x` if the intention is not to end all instances.

Also note that I left `pkill -x Xorg` without the `-9` signal because
for some reason it won't function as expected and end up halting the
system (at least on Void Linux).
2020-07-31 12:25:28 -05:00
Luke Smith
d8f0865799
actually, just use pidof 2020-04-13 11:49:40 -04:00
Luke Smith
080365dd22
pgrep is a little slow, slower than ps | grep 2020-04-11 10:03:33 -04:00
Luke Smith
2b5df860de
#!/bin/sh shebang. newline after universalized. 2020-02-08 18:43:37 -05:00
Luke Smith
2f4a304a75
polybar update 2019-12-07 16:28:00 -05:00
Luke Smith
3b701b74f2
polybar launch moved to bin 2019-11-27 08:13:58 -05:00