added binfiles from chrysostomus/bspwm-scripts, fixed eaten space

This commit is contained in:
2021-09-23 11:28:28 +02:00
parent 8950439dc2
commit 89420117a1
36 changed files with 848 additions and 1 deletions

29
bin/pseudo_automatic_mode Executable file
View File

@@ -0,0 +1,29 @@
#! /bin/sh
fwid=$(bspc query -N -n focused.automatic)
wid=$1
class=$2
instance=$3
title=$(xtitle "$wid")
receptacle=$(bspc query -N -n ".leaf.!window.local" | awk NR==1)
#floats=$(bspc query -N -n .local.floating | wc -l)
if bspc query -N -n "@/.!automatic" > /dev/null ; then
echo "node=@/"
fi
if [ -n "$receptacle" ] > /dev/null ; then
echo "node=$receptacle"
elif [ -n "$fwid" ] ; then
wattr wh $fwid | {
read width height
if [ $width -gt $height ] ; then
echo "split_dir=west"
else
echo "split_dir=south"
fi
# echo "split_ratio=0.5"
}
fi
wmctrl -i -r "$wid" -b add,maximized_vert,maximized_horz &>/dev/null &
#window-placer $floats $wid