dont run setxkbmap if keyboard variable is unset

This commit is contained in:
Rasmus Steinke 2016-08-04 05:27:48 +02:00
parent b3474522b8
commit 132dce5a5f
2 changed files with 4 additions and 2 deletions

View File

@ -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'

View File

@ -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() {