i3 eternally btfo

This commit is contained in:
Luke Smith committed 2019-05-18 16:22:57 -04:00
1 parent 67f70d70bb
commit 8117f84198
24 files changed
-611

No files matched your search

-27
View File
@@ -1,27 +0,0 @@
#!/bin/sh
# This script was made by `goferito` on Github.
# Some cleanup by Luke.
[ -z "$1" ] && echo "No direction provided" && exit 1
distanceStr="2 px or 2 ppt"
moveChoice() {
i3-msg resize "$1" "$2" "$distanceStr" | grep '"success":true' || \
i3-msg resize "$3" "$4" "$distanceStr"
}
case $1 in
up)
moveChoice grow up shrink down
;;
down)
moveChoice shrink up grow down
;;
left)
moveChoice shrink right grow left
;;
right)
moveChoice grow right shrink left
;;
esac