From 6c484edce2561f5a4ca91b850ec18546c4da1fdb Mon Sep 17 00:00:00 2001 From: Riyyi Date: Thu, 25 Feb 2021 01:10:08 +0100 Subject: [PATCH] Remove empty lines from options selection --- .scripts/system.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.scripts/system.sh b/.scripts/system.sh index 1b43aa6..22a7ae8 100755 --- a/.scripts/system.sh +++ b/.scripts/system.sh @@ -15,7 +15,7 @@ commands="\  Reboot:systemctl reboot  Logout:$logout" -choice=$(echo "$commands" | cut -d ':' -f 1 | rofi -dmenu -i -p "System") || exit 0 +choice=$(echo "$commands" | cut -d ':' -f 1 | rofi -no-fixed-num-lines -dmenu -i -p "System") || exit 0 exec=$(echo "$commands" | grep "^$choice" | cut -d ':' -f 2-)