From 3b0042ef18079be26fd4d709c0a8fa9b0fc8b9ab Mon Sep 17 00:00:00 2001 From: Rasmus Steinke Date: Fri, 21 Aug 2015 21:05:34 +0200 Subject: [PATCH] fix aligning --- rofi-pass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rofi-pass b/rofi-pass index d6d82e2..96d9ebb 100755 --- a/rofi-pass +++ b/rofi-pass @@ -67,8 +67,8 @@ doClip () { # main Menu mainMenu () { help_text=$(echo -e "${autotype}: Autotype - ${type_user}: Type User - ${type_pass}: Type Password - ${open_url}: Open URL\n${copy_name}: Copy Username - ${copy_pass}: Copy Password - ${copy_url}: Copy URL - ${show}: Show Entry" | column -s '-' -t) - line1=$(echo "${help_text}" | column -s ':' -t -o ':' | head -1) - line2=$(echo "${help_text}" | column -s ':' -t -o ':' | tail -1) + line1=$(echo "${help_text}" | head -1) + line2=$(echo "${help_text}" | tail -1) HELP="${line1} ${line2}" selected_password="$(echo -e "[ Add Entry ]>\n[ Manage Database ]>\n---\n$(list_passwords 2>/dev/null)" | _rofi -mesg "${HELP}" -dmenu -kb-custom-1 "${autotype}" -kb-custom-2 "${type_user}" -kb-custom-3 "${type_pass}" -kb-custom-4 "${open_url}" -kb-custom-5 "${copy_name}" -kb-custom-6 "${copy_pass}" -kb-custom-7 "${show}" -kb-custom-8 "${copy_url}" -dmenu -select "$entry" -p "rofi-pass > ")"