News for hackers. Stuff that matters.
Re:Show HN: AutoHotkey for Linux by yjftsjthsd-h on Tuesday August 30, 2022 @04:20PM (#32654565)
I mean, as you note, Wayland almost certainly can't provide this kind of functionality by design. It offers some ways to fake input, but AFAIK no way to hook/listen to input events without hoping that each compositor adds a way to do so. In contrast, X11 trivially enables read and write access to input events, as well as the ability to intercept input and rewrite it before applications see it. Also, while many distros now ship Wayland as the nominal default, last I'd seen it was actually used by a minority of users compared to Xorg (if we exclude ChromeOS, which seems reasonable for this conversation).
Re:Show HN: AutoHotkey for Linux by smartmic on Tuesday August 30, 2022 @05:01PM (#32655012)
> Also, while many distros now ship Wayland as the nominal default, last I'd seen it was actually used by a minority of users compared to Xorg

You touched a good point. The one and only metric to measure success in software is the number of active users. However, i do not know of any statistics Xorg vs. Wayland users. Personally, i have no reason to switch away from X11. In contrary, it was and is a loyal companion now already for decades. I trust the Lindy effect that X11 will stay relevant for a very long time. So kudos for the OP for creating this!

Re:Show HN: AutoHotkey for Linux by jhoechtl on Wednesday August 31, 2022 @04:55AM (#32659907)
So you are not using fractional scaling which is reason enough to switch to Wayland.
Re:Show HN: AutoHotkey for Linux by pantalaimon on Wednesday August 31, 2022 @06:01AM (#32660270)
This is a Gnome issue. It works in KDE (and there are patches to make it work in Gnome too)

https://wiki.archlinux.org/title/HiDPI#Xorg

Re:Show HN: AutoHotkey for Linux by yjftsjthsd-h on Wednesday August 31, 2022 @12:46PM (#32664867)
Different people care about different features. If you want fractional scaling and can't get it on X11, use Wayland. If you want AHK, use X11. Unfortunately, neither option currently has all the features of the other.