From 4f501fdf5f2ec9f4a14c21fbd6955133b77f48db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Wed, 4 Oct 2023 15:28:43 +0300 Subject: menuresize: improvements * Make width option the first in the list. * Exit if no option was chosen in the first menu (e.g. esc key was pressed). --- dotfiles/.local/bin/menuresize | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'dotfiles/.local') 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" -- cgit v1.2.3