~palb91/bwm

b8eca8dd492ca304e0d861f23f7fc49cf3924746 — Pierre-Albéric TROUPLIN 1 year, 2 months ago 727680a
fix: dirty fix for keymap
1 files changed, 7 insertions(+), 1 deletions(-)

M bwm
M bwm => bwm +7 -1
@@ 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]}"