bitwarden-rofi icon indicating copy to clipboard operation
bitwarden-rofi copied to clipboard

xdotool requires keymap to be set through setxkbmap

Open HarbAlarm opened this issue 6 years ago • 2 comments

Currently, a user expects autotyping to work after installing xdotool, depending on their keymap, that may not be the case. One example would be the @ showing up as a 2 on a swiss layout. To make it work I run setxkbmap ch on startup, by adding it to my .xprofile.

For some reason setxkbmap -query includes the current layout already, so the following line works to set it: setxkbmap $(setxkbmap -query | grep layout: | sed 's/layout: //g')

Though I would like for other people to test it before actually adding it to the script.

Alternatively the Heading "Autotyping" in the README.md should include a hint to using setxkbmap.

HarbAlarm avatar Oct 08 '19 12:10 HarbAlarm

I would like to get some further input as well.

I tried loading the swiss keys loadkeys fr_ch and autotyping my email, worked like a charm. Could be testing wrong though..

I think setting the kbmap is something you have to do anyway as part of your personal setup.

mattydebie avatar Oct 18 '19 09:10 mattydebie

@Harbinger-of-rain I ran into the same issue and pushed a potential fix in #65, if you are still interested

TanguyHerbron avatar May 25 '21 11:05 TanguyHerbron