mirror of
https://github.com/VectorKappa/dotfiles.git
synced 2025-12-19 16:26:10 +01:00
added binfiles from chrysostomus/bspwm-scripts, fixed eaten space
This commit is contained in:
13
bin/get-window-alignment
Executable file
13
bin/get-window-alignment
Executable 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
|
||||
Reference in New Issue
Block a user