This commit is contained in:
2022-01-18 01:25:46 -05:00
parent 2e1e1f38b2
commit def5ca8b9a
86 changed files with 9017 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
#!/bin/sh
id="${1?}" \
instance="$3" \
class="$2";
case "$class" in
(foo)
bar;;
("")
unset -v _NET_WM_PID;
. /dev/fd/0 2>/dev/null <<IN
: \"\${$(
xprop \
-id "$id" \
-notype \
-f _NET_WM_PID 32c '=$0' \
_NET_WM_PID;
)}\";
IN
case "$(ps -p "${_NET_WM_PID:?}" -o comm= 2>/dev/null)" in
(spotify)
echo desktop=7 follow=on focus=on;;
esac;;
esac;