dotfiles

dotfiles for my system
git clone git://git.evenfri.xyz/dotfiles.git
Log | Files | Refs

win_size (540B)


      1 #!/bin/sh
      2 
      3 ACTION="$1"
      4 DIRECTION="$2"
      5 SIZE=20
      6 
      7 case "$ACTION" in
      8   expand)
      9     case "$DIRECTION" in
     10       left)   bspc node -z left "$SIZE" 0 ;;
     11       bottom) bspc node -z bottom 0 "$SIZE" ;;
     12       top)    bspc node -z top 0 -"$SIZE" ;;
     13       right)  bspc node -z right -"$SIZE" 0 ;;
     14     esac
     15     ;;
     16   squash)
     17     case "$DIRECTION" in
     18       left)   bspc node -z left -"$SIZE" 0 ;;
     19       bottom) bspc node -z bottom 0 -"$SIZE" ;;
     20       top)    bspc node -z top 0 "$SIZE" ;;
     21       right)  bspc node -z right "$SIZE" 0 ;;
     22     esac
     23     ;;
     24 esac