aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2016-08-04 05:27:48 +0200
committerRasmus Steinke <rasi@xssn.at>2016-08-04 05:27:48 +0200
commit132dce5a5f29d3af776ef647e96cf319dabe0e8b (patch)
tree09ae60c3eaccfa614d4d7e56fdc2098342171513
parentb3474522b887777309c24314e83a62c866dd557e (diff)
downloadrofi-pass-132dce5a5f29d3af776ef647e96cf319dabe0e8b.tar.gz
dont run setxkbmap if keyboard variable is unset1.4
-rw-r--r--config.example2
-rwxr-xr-xrofi-pass4
2 files changed, 4 insertions, 2 deletions
diff --git a/config.example b/config.example
index 8241967..ba17a51 100644
--- a/config.example
+++ b/config.example
@@ -7,7 +7,7 @@ _rofi () {
}
# keyboard layout (set this to your actual layout. E.g. keyboard="de us"
-keyboard=us
+#keyboard=us
# fields to be used
URL_field='url'
diff --git a/rofi-pass b/rofi-pass
index bfc022d..08cea2d 100755
--- a/rofi-pass
+++ b/rofi-pass
@@ -40,7 +40,9 @@ help="Alt+h"
switch="Alt+x"
insert_pass="Alt+n"
-setxkbmap "${keyboard}"
+if [[ -n $keyboard ]]; then
+ setxkbmap "${keyboard}"
+fi
# get all password files and create an array
list_passwords() {