Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems using multiple modifiers #50

Open
FriedrichFroebel opened this issue Jul 12, 2019 · 2 comments
Open

Problems using multiple modifiers #50

FriedrichFroebel opened this issue Jul 12, 2019 · 2 comments

Comments

@FriedrichFroebel
Copy link

FriedrichFroebel commented Jul 12, 2019

I am currently trying to get my PCSensor foot switch to work using multiple modifier keys at once with my German keyboard layout on Ubuntu 18.04.

Basically I need Alt Ctrl + 7 which inserts { using the regular keyboard. Trying to use either

  • ./footswitch -S 'e9 e3' -s 7 (leading to <XF86Eject><Super_L>7 with -r) or
  • ./footswitch -m alt -m ctrl -k 7 (leading to ctrl+alt+7)

does not seem to work. (These codes are from xmodmap -pk and xev -event keyboard. There are other problems using the ones from the linked USB HID usage table.) In the first case, it will just print 7 and the second case does not seem to produce any output at all.

Trying to use ß as a key (to get a backslash) does not work as well as this character cannot be encoded: Cannot encode key 'ß'.

Is there anything I can do about this?

(By the way: Using the "official" software on Windows the ssharp character does not work, too, as the software inserts ] instead. Configuring the foot switch on Windows and using the configured keys on Ubuntu does not work as well as the wrong output gets produced.)

@rgerganov
Copy link
Owner

I am currently trying to get my PCSensor foot switch to work using multiple modifier keys at once with my German keyboard layout on Ubuntu 18.04.

Basically I need Alt Ctrl + 7 which inserts { using the regular keyboard. Trying to use either

I guess you have some additional input handler which "translates" Alt+Ctrl+7 to {. I get no output when I press this on my keyboard. Why not simply using footswitch -k '{'?

@FriedrichFroebel
Copy link
Author

FriedrichFroebel commented Jul 12, 2019

German keyboard layouts have a dedicated Alt Gr key and { is the third option of the key 7. According to xev this key seems to be mapped to keycode 108 (keysym 0xfe03, ISO_Level3_Shift) with my setup.

footswitch -k '{' does not produce any output, xev says this writes keycode 248 (keysym 0x0, NoSymbol).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants