ydotool | linux | |
---|---|---|
63 | 76 | |
1,282 | - | |
- | - | |
5.3 | - | |
about 20 hours ago | - | |
C | ||
GNU Affero General Public License v3.0 | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ydotool
- Show HN: Bonk, a command-line tool for X11 window management
-
Improving cursor rendering on Wayland
Wayland provides little by design, so this is quite typical. For example:
Screensharing is handled by pipewire [0], changing keyboard layouts aren't defined [1] by wayland, and generally anything Wayland devs think would 'corrupt' their protocol.
They leave most things to the compositor to implement, which leads to significant fragmentation as every compositor implements it differently.
Long gone are the days of xset and xdotool working across nearly every distro due to a common base, now the best you'll get is running a daemon as root to directly access `/dev/uinput` [2] or implementing each compositors accessibility settings (if they have them) as a workaround.
[0] https://superuser.com/questions/1221333/screensharing-under-...
[1] https://unix.stackexchange.com/questions/292868/how-to-custo...
[2] https://github.com/ReimuNotMoe/ydotool
-
how hard is it to program pinch zoom for my touchpad in linux?
I personally use libinput-gestures to call commands using touchpad gestures. You can also combine it with ydotool to bind macros and such to your gestures, e.g. 4 fingers swipe down closes the current window, 3 fingers swipe left or right changes workspace, etc
-
ydotoold background process?
Have you tried using the systemd unit file supplied with ydotool? It's probably installed somewhere on your system. Else you can get it here and just change the install location of ydotoold.
-
KDE-Connect keyboard input works on Wayland now!!
For simulated keyboard there are tools such as dotool or ydotool and KeePass extensions such as KPUInput that work by giving the user access to /dev/uinput. That works, but it's a bit inelegant; I guess in the future a Wayland protocol for simulated keyboard input will emerge, like wlroots already has, also for virtual pointers.
-
Out of curiosity, I tried to use Wayland earlier and compared to X11, everything seems to load faster which really surprised me. However, I've also noticed some things that confused me, that's why I'm posting this. To ask what I'm missing or what I did wrong. Thanks as always!
ydotool is the generic equivalent. It works on both X11 and Wayland environments.
-
Curious to know what are your general experiences on using keyboard and mouse input automations on Wayland...
Autokey does not work yet, but there is Hawck and Espanso that you could play around with. And there is ydotool if all you need is simulating basic input (as in ydotool mousemove -x -10 -y -10, ydotool type 'Hello world!' and so on).
-
Asahi Linux To Users: Please Stop Using X.Org
Does ydotool do what you need? I haven't even tried Wayland in years. I'm sure someday I'll find the need.
- Somehow AutoHotKey is kinda good now
- How to emulate mouse clicks with keyboard shortcuts
linux
-
Linux Mint Working on Wayland Support
It's actually incredibly useful to have apps like window managers or apps that rely on manipulating user input like xcape read another apps data. In fact such are still possible just 10x as complicated as they now involve writing awful little programs in some combination of c and yaml instead of a dead simple single line shell invocation of a program.
See https://gitlab.com/interception/linux/tools
The fact that this can work at all seems to suggest that its just as possible for malicious code running as user to compromise your security and the only thing actually broken is useful apps.
-
Issue with interception-tools
After updating my system after a while, i found Interception-tools to not working . It fails on a dependency on libyaml-cpp.so.0.7
-
<ESC> substitution
You can try to use https://gitlab.com/interception/linux/tools/-/tree/master
- Mapping Caps-Lock to Esc is life changing
-
What's a very simple config change that you can't live without?
Having both is a game-changer. Depends on your OS. On Mac, I use Karabiner. Linux I used use caps2esc and on Windows I use a custom AutoHotKey.
-
Emacs-written novel on the German bestseller list
Before that I had used interception tools for key rebindings, which relied on the udevmon service to intercept keypress events, and thus even works in a TTY terminal, not requiring a window manager. I use vim keybindings in Emacs and for that I found it useful to rebind ESC to CTRL if tapped, but it still acts as CTRL when held (now I have implemented that in my keyboard firmware).
-
newbie doubt here
In addition to using ctrl+a as prefix... some of us remap capslock to ctrl so then the two buttons are right next to each other and easy to press with one motion. (This then makes it possible to have that key be ctrl when pressed in combo with another key or esc when pressed on its own.)
-
Mapping Alt+hjkl to arrow keys (sway, wayland)
i use both X and Wayland and i also have a lot of key switching going on. So to have a universal config that works under both protocols i have to go lower than the display server protocols. I looked around for such a thing and finally found the interception tool
-
How to swap Caps Lock and Ctrl?
Do you know about https://gitlab.com/interception/linux/plugins/caps2esc? It makes it ctrl when held in combo with another key or esc when pressed on its own w/o other key (I loved it before ergodox) and there are some related plugins there for other keyboard customizations as well.
-
TUTORIAL: Making Caps do both Control and Esc like Caps2Esc, but with only hyprland+ydotool
Caps2Esc is a very useful input remapping utility: it turns the Caps key into either Esc or Control depending on how it's used: - if the Caps key is released before another key is pressed, it emits Esc - If the Caps key is used in chording mode, like by pressing Caps and C, it emits Control, to send Control-C
What are some alternatives?
xdotool - fake keyboard/mouse input, window management, and more
Rectangle - Move and resize windows on macOS with keyboard shortcuts and snap areas
wtype - xdotool type for wayland
keyd - A key remapping daemon for linux.
AutoKey - AutoKey, a desktop automation utility for Linux and X11.
kinto - Mac-style shortcut keys for Linux & Windows.
evsieve - A utility for mapping events from Linux event devices.
xcape - Linux utility to configure modifier keys to act as other keys when pressed and released on their own.
sway - i3-compatible Wayland compositor
Mailspring-Libre - (archived) Mailspring Libre build – aiming at removing Mailspring's dependecy on a central server
key-mapper - 🎮 An easy to use tool to change the mapping of your input device buttons. [Moved to: https://github.com/sezanzeb/input-remapper]
QuickLook - Bring macOS “Quick Look” feature to Windows