Skip to content

Commit

Permalink
dont run setxkbmap if keyboard variable is unset
Browse files Browse the repository at this point in the history
  • Loading branch information
carnager committed Aug 4, 2016
1 parent b347452 commit 132dce5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config.example
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 3 additions & 1 deletion rofi-pass
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 132dce5

Please sign in to comment.