@@ 16,6 16,10 @@ url=
selection=
+# /!\ Dirty hack to force the use of a specific keymap /!\
+keymap=( fr bepo )
+
+
# Utils
help() {
cat <<HELP
@@ 154,7 158,7 @@ get_credentials() {
}
-# Run wtype or wl-copy with asked content
+# Run wtype, xdotool or wl-copy with asked content
type_or_copy() {
set -- "${credentials[${asset}]}"
@@ 166,6 170,8 @@ type_or_copy() {
set -- -s 150 "${@}"
elif [[ "${cmd}" = 'xdotool' ]]; then
+ setxkbmap "${keymap[@]}"
+
[[ "${asset}" = 'both' ]] \
&& set -- "${credentials[user]}"$'\t'"${credentials[pass]}"