aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdotfiles/.local/bin/menuresize5
1 files changed, 4 insertions, 1 deletions
diff --git a/dotfiles/.local/bin/menuresize b/dotfiles/.local/bin/menuresize
index 8875c45..9d1c028 100755
--- a/dotfiles/.local/bin/menuresize
+++ b/dotfiles/.local/bin/menuresize
@@ -19,5 +19,8 @@ if [ -n "$1" ]; then
fi
-direction="$(printf "left\nright\nup\ndown\nwidth\nheight" | rofi -dmenu -matching prefix -p "Select resize direction or dimension")"
+direction="$(printf "width\nheight\nleft\nright\nup\ndown" | rofi -dmenu -matching prefix -p "Select resize direction or dimension")"
+if [ -z "$direction" ]; then
+ exit
+fi
resize "$direction"