diff options
author | Rasmus Steinke <rasi@xssn.at> | 2016-08-04 05:27:48 +0200 |
---|---|---|
committer | Rasmus Steinke <rasi@xssn.at> | 2016-08-04 05:27:48 +0200 |
commit | 132dce5a5f29d3af776ef647e96cf319dabe0e8b (patch) | |
tree | 09ae60c3eaccfa614d4d7e56fdc2098342171513 | |
parent | b3474522b887777309c24314e83a62c866dd557e (diff) | |
download | rofi-pass-132dce5a5f29d3af776ef647e96cf319dabe0e8b.tar.gz |
dont run setxkbmap if keyboard variable is unset1.4
-rw-r--r-- | config.example | 2 | ||||
-rwxr-xr-x | rofi-pass | 4 |
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' @@ -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() { |