From 9c4de3e4a9eb8da6eba7c4863d44b2f13f66732d Mon Sep 17 00:00:00 2001 From: zachir Date: Sat, 25 Dec 2021 14:47:55 -0600 Subject: add window swallowing (a la dwm) --- helper.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 helper.sh (limited to 'helper.sh') diff --git a/helper.sh b/helper.sh new file mode 100755 index 0000000..d51fbab --- /dev/null +++ b/helper.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +ppid() { + printf "$(ps -o ppid= -p $1)" | xargs +} + +gppid() { + PARENT=$(ps -o ppid= -p $1) + GRANDPARENT=$(ps -o ppid= -p $PARENT) + printf "$GRANDPARENT" | xargs +} + +$@ -- cgit v1.2.3