aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJopStro <[email protected]>2021-02-02 11:30:54 +0000
committerJopStro <[email protected]>2021-02-02 11:30:54 +0000
commite777d168519b10a3e19e9207c51a0b2de37dc739 (patch)
treed4f601741c62b4f7b3f724528f1ab98279347dac
parente6de1db7d910bf209f0e249901bdc918f0119ed2 (diff)
Fix regex in get_pid (for real this time)
-rwxr-xr-xbspswallow2
1 files changed, 1 insertions, 1 deletions
diff --git a/bspswallow b/bspswallow
index 460cba0..59fb84d 100755
--- a/bspswallow
+++ b/bspswallow
@@ -13,7 +13,7 @@ get_class() {
}
get_pid() {
- xprop _NET_WM_PID -id "$1" | awk '/[0-9]*/ {print $3}'
+ xprop _NET_WM_PID -id "$1" | awk '/[0-9]+/ {print $3}'
}
get_ppid() {