From b3474522b887777309c24314e83a62c866dd557e Mon Sep 17 00:00:00 2001 From: Rasmus Steinke Date: Sun, 31 Jul 2016 21:15:18 +0200 Subject: [PATCH] let user set keyboard layout, hopefully fixes #34 --- config.example | 2 ++ rofi-pass | 2 ++ 2 files changed, 4 insertions(+) diff --git a/config.example b/config.example index fd748cf..8241967 100644 --- a/config.example +++ b/config.example @@ -6,6 +6,8 @@ _rofi () { rofi -i -width 700 -no-levenshtein-sort "$@" } +# keyboard layout (set this to your actual layout. E.g. keyboard="de us" +keyboard=us # fields to be used URL_field='url' diff --git a/rofi-pass b/rofi-pass index 4c405eb..bfc022d 100755 --- a/rofi-pass +++ b/rofi-pass @@ -40,6 +40,8 @@ help="Alt+h" switch="Alt+x" insert_pass="Alt+n" +setxkbmap "${keyboard}" + # get all password files and create an array list_passwords() { cd "${root}" || exit