mirror of
https://github.com/VectorKappa/dotfiles.git
synced 2025-12-19 08:16:10 +01:00
added binfiles from chrysostomus/bspwm-scripts, fixed eaten space
This commit is contained in:
13
bin/auto-presel
Executable file
13
bin/auto-presel
Executable file
@@ -0,0 +1,13 @@
|
||||
#! /bin/sh
|
||||
# Original script by https://github.com/ikn/ , modified to use splitting method of
|
||||
# https://github.com/baskerville/bspwm/tree/master/examples/external_rules/pseudo_automatic_mode
|
||||
fwid=$(bspc query -N -n focused)
|
||||
|
||||
wattr wh $fwid | {
|
||||
read width height
|
||||
if [ $width -gt $height ] ; then
|
||||
bspc node -p \~east
|
||||
else
|
||||
bspc node -p \~south
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user