added faster xmodmap alternative #14
Open
Raekh wants to merge 1 commit into
Open
Conversation
+ ~/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.
It works for you as is? |
Author
|
The output should be a.c instead of a.out. Then you can run gcc on it again
and this time it creates the executable you can run
…On Tue, 5 Sept 2023, 07:52 Nikola Milovic, ***@***.***> wrote:
+ ~/keyboard on master ➜ gcc xmodmap_alternative.c -lX11
+ ~/keyboard on master ➜ lsa.out README.md xmodmap_alternative.c
+ ~/keyboard on master ➜ xmodmap a.outxmodmap: unknown command on line a.out:1xmodmap: unknown command on line a.out:6xmodmap: unknown command on line a.out:7xmodmap: unknown command on line a.out:8xmodmap: unknown command on line a.out:9xmodmap: unknown command on line a.out:10xmodmap: 6 errors encountered, aborting.
gcc version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04)
It works for you as is?
—
Reply to this email directly, view it on GitHub
<#14 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFYZFQIG24PKM4PCVMF6WHTXY24YNANCNFSM6AAAAAAXPYXWDM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
|
Doesn't work for me, can you post your versions and setup? The commands are rather simple I doubt I messed something up |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.