aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2016-03-30 17:59:02 +0200
committerRasmus Steinke <rasi@xssn.at>2016-03-30 17:59:02 +0200
commit75cf7151588927122d696dc1daa95fee1ba43644 (patch)
treee7f8bfb1b4a35c432dc240d6a5cdbb13efc8ae9c
parent11790ca6c6bcb3e892c6f66f4543df1ebbb07b72 (diff)
downloadrofi-pass-75cf7151588927122d696dc1daa95fee1ba43644.tar.gz
make rofi command a function to eliminate problems with quotes options. Should fix #33 once and for all
-rw-r--r--config.example10
-rwxr-xr-xrofi-pass6
2 files changed, 8 insertions, 8 deletions
diff --git a/config.example b/config.example
index 1cd5102..31a6c1d 100644
--- a/config.example
+++ b/config.example
@@ -1,11 +1,11 @@
# permanently set alternative root dir
# root=/path/to/root
-# optional rofi parameters:
-# keep in mind that 0.15.7 has different arguments compared to
-# latest git. for rofi-pass this means that "-i" will not work with
-# 0.15.7.
-rofiopts="-i -width 700 -no-levenshtein-sort"
+# rofi command. Make sure to have "$@" as last argument
+_rofi () {
+ rofi -z -i -width 700 -no-levenshtein-sort "$@"
+}
+
# fields to be used
URL_field='url'
diff --git a/rofi-pass b/rofi-pass
index 5a64425..5edbbc2 100755
--- a/rofi-pass
+++ b/rofi-pass
@@ -462,9 +462,9 @@ password_gen () {
fi
}
-function _rofi () {
- rofi -dmenu -z "${rofiopts}" "$@"
-}
+#function _rofi () {
+# rofi -dmenu -z ${rofiopts} "$@"
+#}
help_msg () {
echo "rofi-pass (Version: 1.2)"