12345678910111213141516171819202122232425262728293031323334 |
- #!/bin/sh
- coded_by='
- In the name of Allah, the most Gracious, the most Merciful.
- ▓▓▓▓▓▓▓▓▓▓
- ░▓ Author ▓ Abdullah <https://abdullah.today>
- ░▓▓▓▓▓▓▓▓▓▓
- ░░░░░░░░░░
- ░█▀▄░█▀▀░█▀▀░▀█▀░▀▀█░█▀▀░░░█░█░▀█▀░█▀█░█▀▄░█▀█░█░█░█▀▀
- ░█▀▄░█▀▀░▀▀█░░█░░▄▀░░█▀▀░░░█▄█░░█░░█░█░█░█░█░█░█▄█░▀▀█
- ░▀░▀░▀▀▀░▀▀▀░▀▀▀░▀▀▀░▀▀▀░░░▀░▀░▀▀▀░▀░▀░▀▀░░▀▀▀░▀░▀░▀▀▀
- '
- if bspc query -N -n focused.floating > /dev/null; then
- step=50
- else
- step=100
- fi
- case "$1" in
- west) dir=right; falldir=left; x="-$step"; y=0;;
- east) dir=right; falldir=left; x="$step"; y=0;;
- north) dir=top; falldir=bottom; x=0; y="-$step";;
- south) dir=top; falldir=bottom; x=0; y="$step";;
- esac
- bspc node -z "$dir" "$x" "$y" || bspc node -z "$falldir" "$x" "$y"
- # vim: ft=sh
|