[raw] [dotfiles.tar.gz]
   1 #!/bin/bash
   2 
   3 declare -A map=(
   4     [up]=down
   5     [down]=up
   6     [left]=right
   7     [right]=left
   8 )
   9 
  10 i3-msg resize grow $1 ${@:2} ||
  11 i3-msg resize shrink ${map[$1]} ${@:2}