Input Simulation does not output desired char and Freezes Application

I having problems trying to output these chars: ! @ # " AND upper case chars, AND sometimes my attemps to find the right config FREEZES the application. IE: this [t("!")] ouputs >> 1 In a Using lsb_release: Distributor ID: Ubuntu Description: Ubuntu 25.10 Release: 25.10 Codename: questing OpenDeck v2.6.1 (799af63) on x86_64-unknown-linux-gnu active-win-pos-rs 0.9.1, anyhow 1.0.99, base64 0.22.1, built 0.8.0, dashmap 6.1.0, elgato-streamdeck 0.11.1, fix-path-env 0.0.0, fs2 0.4.3, futures 0.3.31, image 0.25.6, json-patch 4.0.0, log 0.4.27, log-panics 2.1.0, once_cell 1.21.3, open 5.3.2, os_info 3.12.0, path-slash 0.2.1, reqwest 0.12.23, semver 1.0.26, serde 1.0.219, serde-inline-default 0.2.3, serde_json 1.0.143, serde_with 3.14.0, sysinfo 0.36.1, tauri 2.8.4, tauri-build 2.4.0, tauri-plugin-aptabase 1.0.0, tauri-plugin-autostart 2.5.0, tauri-plugin-cors-fetch 4.1.0, tauri-plugin-deep-link 2.4.2, tauri-plugin-dialog 2.3.3, tauri-plugin-log 2.6.0, tauri-plugin-single-instance 2.2.0, tiny_http 0.12.0, tokio 1.47.1, tokio-tungstenite 0.26.2, urlencoding 2.1.3, windows-sys 0.60.2, zip 4.5.0 My Keyboard is: Portuguese (Brazil) ABNT2
Solution:
you can do this with a 1 instead of a !, so it's shift+1 = ! ([k(Shift, p),k(uni('1')),k(Shift, r)]) unfortunately for any further fixes you'll have to report the issue to enigo as input sim is outside the scope of our project edit: although, about the freezing, try v2.7.1 as it has a newer enigo version with nice fixes for linux...
Jump to solution
19 Replies
Terrorwolf
Terrorwolf2mo ago
what is the output of [k(uni('!!'))] since you are on Ubuntu 25.10 you are probably on wayland. Can you confirm?
Luís Matta
Luís MattaOP2mo ago
Yes:
echo $XDG_SESSION_TYPE
wayland
echo $XDG_SESSION_TYPE
wayland
no output, and after some seconds it froze (it was not immediate) tried again after off-and-on-again, clicked just one -- did not freeze
Terrorwolf
Terrorwolf2mo ago
sorry it should have been only 1 !. Not two.
Luís Matta
Luís MattaOP2mo ago
ok Outputs > 1
Terrorwolf
Terrorwolf2mo ago
could you try to switch your keyboard layout for a moment to english and try again? You can turn back directly after.
Luís Matta
Luís MattaOP2mo ago
yes, of course
Luís Matta
Luís MattaOP2mo ago
before keyboard change
Luís Matta
Luís MattaOP2mo ago
Same result. BUT I found out that if I press SHIFT while using the [k(uni('!'))] it output "!" Please note that I am having problems with uppercases also
Terrorwolf
Terrorwolf2mo ago
do you have libei installed?
Luís Matta
Luís MattaOP2mo ago
this worked: [k(LShift, Press),k(uni('!')),k(LShift, Release)] probably not
Terrorwolf
Terrorwolf2mo ago
its a workaround, but not a solution in my eyes.
Luís Matta
Luís MattaOP2mo ago
yes
Terrorwolf
Terrorwolf2mo ago
could you please check?
Luís Matta
Luís MattaOP2mo ago
ldconfig -p | grep libei
libeis.so.1 (libc6,x86-64) => /lib/x86_64-linux-gnu/libeis.so.1
libei.so.1 (libc6,x86-64) => /lib/x86_64-linux-gnu/libei.so.1
ldconfig -p | grep libei
libeis.so.1 (libc6,x86-64) => /lib/x86_64-linux-gnu/libeis.so.1
libei.so.1 (libc6,x86-64) => /lib/x86_64-linux-gnu/libei.so.1
Terrorwolf
Terrorwolf2mo ago
ok. so it seems to be installed.
Luís Matta
Luís MattaOP2mo ago
(note: I have to leave now, and I will be back at this computer only Thursday) -- thanks
Terrorwolf
Terrorwolf2mo ago
no worries, I also need to head out now. If I think about something I will send a message.
Luís Matta
Luís MattaOP6d ago
Any news? need anything ?
Solution
nekename
nekename2d ago
you can do this with a 1 instead of a !, so it's shift+1 = ! ([k(Shift, p),k(uni('1')),k(Shift, r)]) unfortunately for any further fixes you'll have to report the issue to enigo as input sim is outside the scope of our project edit: although, about the freezing, try v2.7.1 as it has a newer enigo version with nice fixes for linux

Did you find this page helpful?