by jjcon · 5y ago · 0 comments
Only semi-related but what I really want is for easy windows apps on linux that work without fail. I prefer my linux box and generally hate the windows ui (don't get me started on windows settings or audio). I've tried switching to linux full-time but I don't know if I can hack it. Games are 90% there and I can do without the few that don't work with proton, but there are just too many apps that only work on my windows side that I just don't think I can dump windows.
Wine gives me inconsistent results and breaks for just about anything that needs registry access, not to mention its pretty complicated. I'm hoping to stumble on some tool I've been missing out on that makes everything easier because I wan't to run linux as my daily... I just don't know if it is practical.
At the simplest level, it re-maps ^H to the left cursor arrow, ^N to PageDown, etc.
But it gets more complicated: ^D maps to seven down cursor arrows (i.e. it moves the cursor down seven lines), ^U in the opposite direction. ^C usually (more details below) maps to ^Left (i.e. go to the beginning of the word), Shift-^Right (select to end of word), and ^C (copy selected text). (Notice the final ^C does not cause recursion!)
^A once goes to the beginning of the line, ^A twice goes to top of screen (I forget the exact keystrokes it emits, but this works with most apps), and ^A thrice goes to the beginning of the file. Analogously for ^E, but end.
Finally, it has two modes. In the normal mode, all the cursor control keys do their normal cursor movement thing. But type ^Q, and the cursor keys are now in select mode: ^H outputs Shift-Left, i.e. selects the character to the left, etc. Drop out of select mode with ^C (copy selection--different from what I described above!), ^X (cut selection), or ^Q again (do nothing with the selection).
I'd love to be able to reproduce this kind of behavior in Linux. I'm sure it's possible, but I don't know enough about keyboard re-mapping, or keyboard drivers, to do it.
It's been a blast to play around with. Best part is that it travels with the keyboard rather than the OS, so I can plug into a different computer and retain the same layout without needing to install anything.
I've been slowly resetting all my OS hotkeys/shortcuts to their defaults, and customizing the position of those keys on my keyboard instead. Current layout, for reference: https://configure.zsa.io/ergodox-ez/layouts/xbzAL/latest/0
XInput2 and XIGrabKeycode should provide the highest priority grabbing under Xorg so that even applications that do server-wide grabs (e.g. games) will be bypassed.
XTest was meant for automated UI testing but can be used for all sorts of automated behaviors.
For the first part i wrote a simple program[2] years a go that uses xkill to kill the toplevel window with Ctrl+Alt+K (mainly for games that grab the input and hang) which can be used as a quick example. I haven't tried to use XTestFakeKeyEvent but there seems to be a lot of code out there which can be used as an example, e.g. this one[2] (see the send_key function near the top).
[0] https://linux.die.net/man/3/xigrabkeycode
[1] https://linux.die.net/man/3/xtestfakekeyevent
[2] http://runtimeterror.com/tools/xkeyller/
[3] http://git.yoctoproject.org/cgit.cgi/matchbox-history/plain/...
Specifically: VR Development - Unity now has a linux version which is great but there is no oculus runtime which means no oculus testing (SteamVR works but has some hiccups)
Digital audio workstations - Looking primarily at FL Studio, yes you can wine it but for me the audio delay makes it very difficult to use. I'd love to find solutions around this but haven't thus far.
Niche utilities - For game dev I've got a ton of old utilities for visualizing or converting old 3d object files to newer formats, sdks for old games that I occasionally need to pop into and all of them struggle or require a lot of setup to work properly on linux. For these I find myself booting over to windows, grabbing what I need and popping back to linux.
I'll bite - what's wrong with the audio? Friends on mine in game dev often complain Linux audio is hopeless to work with.
I have a pretty solid Dell laptop from work, and yet, there is one frustration that beats out anything else: audio.
I can't play music without it stuttering and skipping and sounding choppy and cutting out if something resource-intensive is happening, like Firefox loading a new page (but how often does THAT happen?)
Same with audio notifications. When my "new mail" notification sounds choppy, the underlying system must be just absolute garbage.
Used to happen only in Warzone but now I'm noticing it affects games with other engines as well.
Granted I have a very non-standard setup but it shouldn't be causing any of these issues.
I'll disable the speakers on the monitor from the HW menu on the monitor and see if that helps.
For example, figuring out how to configure and test surround sound channels means click through multiple dialogs, and it's not clear how exactly to get there.
With Windows 10, it's even harder to access sound mixer than it was on previous versions, and this is what to use in 99% after clicking on audio icon in the taskbar.
The UI is complete garbage but siblings said enough about that dumpster fire already.
This is especially annoying for audio devices, because lots of applications - and certainly any slightly more advanced setup - require explicit configuration of audio devices and when Windows does its "it's a different thing every time I see it" temper tantrum this means you have to go back to every application and tell it again "Yeah, that OUT3-4 that doesn't exist any more? Use the OUT3-4 that does exist", because the user-visible name stays the same (it's the same hardware, after all), while the underlying ID changes for one reason or another.
This has nothing to do with vendor's drivers btw., this is simply how hotplug works in Windows' driver model.
So no, this is not "working fine".