Initial commit
This commit is contained in:
14
scripts/bsp-floating-only
Executable file
14
scripts/bsp-floating-only
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user