diff --git a/rofi-pass b/rofi-pass index 60ddc1a..b395148 100755 --- a/rofi-pass +++ b/rofi-pass @@ -39,9 +39,6 @@ help="Alt+h" switch="Alt+x" insert_pass="Alt+n" -if [[ -n $keyboard ]]; then - setxkbmap "${keyboard}" -fi # get all password files and create an array list_passwords() { @@ -535,6 +532,10 @@ if [[ ! -d "$HOME/.cache/rofi-pass" ]]; then mkdir "$HOME/.cache/rofi-pass" fi +if [[ -n $keyboard ]]; then + setxkbmap "${keyboard}" +fi + # set help color if [[ $help_color == "" ]]; then help_color=$(rofi -dump-xresources | grep 'rofi.color.normal' | gawk -F ',' '/,/{gsub(/ /, "", $2); print $2}')