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

13
bin/get-window-alignment Executable file
View File

@@ -0,0 +1,13 @@
#! /bin/sh
# By https://github.com/tatou-tatou
id="$(bspc query -N -n "${1:-focused}" | head -n1)"
[ -z "$id" ] && exit 1
w=$(wattr w "$id")
h=$($(wattr h "$id")
if [ "$w" -gt "$h" ]; then
echo horizontal
else
echo vertical
fi