dotfiles/modules/bspwm/scripts/bsp-floating-only
2024-01-25 00:55:35 -07:00

15 lines
318 B
Bash
Executable File

#!/bin/sh
if [ ! -z $1 ]; then
# FLOATING_DESKTOP_ID=$(bspc query -D -d '^3')
FLOATING_DESKTOP_ID=$1
bspc subscribe node_add | while read -a msg ; do
desk_id=${msg[2]}
wid=${msg[4]}
[ "$FLOATING_DESKTOP_ID" = "$desk_id" ] && bspc node "$wid" -t floating
done
else
echo "No desktop provided"
fi