README.md, rofi-pass: don't run setxkbmap(1)

The user has to take care of it, as they're probably smarter than the script.
We didn't handle the cases where there were variants (such as `fr bepo`).
Having the user fix this during session startup also fixes various other issues
in different software (such as sxhkd(1)).
This commit is contained in:
Moviuro 2017-03-12 11:51:26 +01:00
parent 748eb8ec39
commit e8656222b7
2 changed files with 1 additions and 8 deletions

View File

@ -72,7 +72,7 @@ Also included is an import script for keepass2 databases. It's the same script t
## FAQ ## FAQ
* rofi pass prints garbage instead of my actual passes * rofi pass prints garbage instead of my actual passes
** Set your keyboard layout in config ** Make sure to run `setxkbmap <language> <variant>` at the start of your Xorg session.
## Alternative ## Alternative

View File

@ -561,13 +561,6 @@ if [[ ! -d "$HOME/.cache/rofi-pass" ]]; then
mkdir "$HOME/.cache/rofi-pass" mkdir "$HOME/.cache/rofi-pass"
fi fi
if [[ -n $keyboard ]]; then
setxkbmap ${keyboard}
else
keyboard=$(setxkbmap -query | grep layout | grep -oE '[^: ]+$')
setxkbmap ${keyboard}
fi
# set help color # set help color
if [[ $help_color == "" ]]; then if [[ $help_color == "" ]]; then
help_color=$(rofi -dump-xresources | grep 'rofi.color.normal' | gawk -F ',' '/,/{gsub(/ /, "", $2); print $2}') help_color=$(rofi -dump-xresources | grep 'rofi.color.normal' | gawk -F ',' '/,/{gsub(/ /, "", $2); print $2}')