aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbspswallow2
1 files changed, 1 insertions, 1 deletions
diff --git a/bspswallow b/bspswallow
index 0a2e21b..d32f15b 100755
--- a/bspswallow
+++ b/bspswallow
@@ -24,7 +24,7 @@ check_swallowing_process() {
pid=$(get_pid $1)
[ -z $pid ] && return 0
gppid=$(get_ppid $(get_ppid $pid))
- grep -i "^$(ps -o cmd= -p $gppid | awk '{print $1}')$" ~/.config/bspwm/terminals && return 0
+ grep -i "^$(ps -o cmd= -p $gppid | awk '{print $1}' | sed 's_^.*/__')$" ~/.config/bspwm/terminals && return 0
[ "$(get_ppid "$(get_ppid "$(get_pid "$1")")")" = "$(get_pid "$2")" ] && return 0 || return 1
}