aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2017-07-15 00:43:17 +0200
committerRasmus Steinke <rasi@xssn.at>2017-07-15 00:43:17 +0200
commit0ed16e869a25c4a707bd7393aeeb061304ab90d8 (patch)
tree071a6981e300ffb02061f27b9d20060b35ab0682
parent5b6019935812f69105e4610a5ef3175e90d114d6 (diff)
downloadrofi-pass-0ed16e869a25c4a707bd7393aeeb061304ab90d8.tar.gz
Use different return code for mode change
-rwxr-xr-xrofi-pass6
1 files changed, 3 insertions, 3 deletions
diff --git a/rofi-pass b/rofi-pass
index d5739d3..6ea1995 100755
--- a/rofi-pass
+++ b/rofi-pass
@@ -239,7 +239,7 @@ mainMenu () {
selected_password="$(list_passwords 2>/dev/null \
| _rofi -mesg "Bookmarks Mode. ${switch} to switch" \
-dmenu \
- -kb-custom-1 "Alt+x" \
+ -kb-custom-10 "${switch}" \
-select "$entry" \
-p "rofi-pass > ")"
@@ -247,8 +247,8 @@ mainMenu () {
if [[ $rofi_exit -eq 1 ]]; then
exit
- elif [[ $rofi_exit -eq 10 ]]; then
- ${basecommand}
+ elif [[ $rofi_exit -eq 19 ]]; then
+ $(${basecommand})
elif [[ $rofi_exit -eq 0 ]]; then
openURL
fi