From 132dce5a5f29d3af776ef647e96cf319dabe0e8b Mon Sep 17 00:00:00 2001 From: Rasmus Steinke Date: Thu, 4 Aug 2016 05:27:48 +0200 Subject: [PATCH] dont run setxkbmap if keyboard variable is unset --- config.example | 2 +- 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' diff --git a/rofi-pass b/rofi-pass index bfc022d..08cea2d 100755 --- a/rofi-pass +++ b/rofi-pass @@ -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() {