adding bin files

This commit is contained in:
2023-04-18 09:55:20 +02:00
parent 363dc6c974
commit 1dc6b93bd5
24 changed files with 531 additions and 0 deletions

26
bin/windowpromoter Executable file
View File

@ -0,0 +1,26 @@
#!/usr/bin/sh
receptacle=$(bspc query -N -n ".leaf.!window.local" | awk NR==1)
window_promotion()
{
if [ -n "$receptacle" ] > /dev/null ; then
bspc node -n "$receptacle"
elif [ -z "$(bspc query -N -n last.!automatic.local)" ]; then \
bspc node -s biggest.!focused.local; \
else \
bspc node -n last.!automatic.local; \
fi
}
if bspc query -N -n "@/.!automatic" > /dev/null ; then
bspc node -n @/ || window_promotion
else
if [ -n "$receptacle" ] > /dev/null ; then
bspc node -n "$receptacle"
elif [ -z "$(bspc query -N -n last.!automatic.local)" ]; then \
bspc node -s biggest.!focused.local; \
else \
bspc node -n last.!automatic.local; \
fi
fi