Dotfiles for different machines on different branches.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
519 B

  1. #!/bin/sh
  2. # This script was made by `goferito` on Github.
  3. # Some cleanup by Luke.
  4. [ -z "$1" ] && echo "No direction provided" && exit 1
  5. distanceStr="2 px or 2 ppt"
  6. moveChoice() {
  7. i3-msg resize "$1" "$2" "$distanceStr" | grep '"success":true' || \
  8. i3-msg resize "$3" "$4" "$distanceStr"
  9. }
  10. case $1 in
  11. up)
  12. moveChoice grow up shrink down
  13. ;;
  14. down)
  15. moveChoice shrink up grow down
  16. ;;
  17. left)
  18. moveChoice shrink right grow left
  19. ;;
  20. right)
  21. moveChoice grow right shrink left
  22. ;;
  23. esac