Initial commit
This commit is contained in:
9
scripts/tabc-smart-detach
Executable file
9
scripts/tabc-smart-detach
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
id=$(bspc query -N -n);
|
||||
if [ "$(tabc printclass $id)" == "tabbed" ]; then
|
||||
bspc node -p $1;
|
||||
tabc detach $id;
|
||||
else \
|
||||
tabc attach $id $(bspc query -N -n $1);
|
||||
fi
|
||||
Reference in New Issue
Block a user