Skip to content

added faster xmodmap alternative #14

Open
Raekh wants to merge 1 commit into
ThePrimeagen:masterfrom
Raekh:master
Open

added faster xmodmap alternative #14
Raekh wants to merge 1 commit into
ThePrimeagen:masterfrom
Raekh:master

Conversation

@Raekh

@Raekh Raekh commented Apr 28, 2023

Copy link
Copy Markdown

As explained in the README in xmodmap, it basically emits an event for every key remap, leading to the system sometimes hanging up.

The solution proposed here is from a stackexchange discussion, where the workaround is to create a compilable code from the current mapping, that would apply this layout when executed while only emitting the events once.

@Nikola-Milovic

Copy link
Copy Markdown
+ ~/keyboard on master ➜ gcc xmodmap_alternative.c -lX11

+ ~/keyboard on  master ➜ ls
a.out  README.md  xmodmap_alternative.c

+ ~/keyboard on  master ➜ xmodmap a.out
xmodmap:  unknown command on line a.out:1
xmodmap:  unknown command on line a.out:6
xmodmap:  unknown command on line a.out:7
xmodmap:  unknown command on line a.out:8
xmodmap:  unknown command on line a.out:9
xmodmap:  unknown command on line a.out:10
xmodmap:  6 errors encountered, aborting.

gcc version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04)

It works for you as is?

@Raekh

Raekh commented Sep 5, 2023 via email

Copy link
Copy Markdown
Author

@Nikola-Milovic

Copy link
Copy Markdown

Doesn't work for me, can you post your versions and setup? The commands are rather simple I doubt I messed something up

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

Successfully merging this pull request may close these issues.

2 participants