aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJopStro <[email protected]>2021-02-02 10:38:36 +0000
committerJopStro <[email protected]>2021-02-02 10:38:36 +0000
commit768c95982da522a2f4ce3da7a09598f95833a7f6 (patch)
tree7aa2566fdb2ad9b4e3fad7cbe0ac5495f9bf84dc
parente99a5158fc7a0a3cd9b8e2fce6d5babe870719fb (diff)
Fix pid regex
-rwxr-xr-xbspswallow2
1 files changed, 1 insertions, 1 deletions
diff --git a/bspswallow b/bspswallow
index 409d36b..8b1af9a 100755
--- a/bspswallow
+++ b/bspswallow
@@ -13,7 +13,7 @@ get_class() {
}
get_pid() {
- xprop _NET_WM_PID -id "$1" | awk '/[0-9]{4}/ {print $3}'
+ xprop _NET_WM_PID -id "$1" | awk '/[0-9]*/ {print $3}'
}
get_ppid() {