| 25 Nov 2022 |
samueldr | * anyone has tried to make a declarative thing with NixOS for Plasma settings? | 04:45:39 |
samueldr | attempts are made, kind of, https://github.com/nix-community/home-manager/issues/607 | 04:48:49 |
samueldr | the file format, though, is simply hostile | 05:45:06 |
samueldr | [Libinput][2][14][ETPS/2 Elantech Touchpad]
NaturalScroll=true
TapToClick=true
| 05:45:17 |
samueldr | I need to look into whatever uses kcminputrc, but I'm assuming from that file that you can't configure "any touchpad" | 05:46:19 |
samueldr | at the very least the identifers are related to the hardware;
15: 0002:000e I8042 isa0060/serio4/i ETPS/2 Elantech Touchpad KEY ABS
0x2 and 0xe → 2, 14
and this matches for another device (18d1:503c →[6353][20540])
| 06:06:31 |
samueldr | AFAICT this doesn't apply to keyboard, but applies to mice, and this means if you change mouse, there are no user-defined defaults... so things like acceleration or left-handedness need to be re-defined? | 06:15:13 |
samueldr | support was added for defaults:
- https://invent.kde.org/plasma/kwin/-/commit/352e92e32f04d80944002a7abf363f1b957ce5b2
| 06:49:19 |
samueldr | but AFAIUI this implies it's not being used
- https://invent.kde.org/plasma/kwin/-/blob/777c2bdb18408b903e7be6e6f9fe5183899b8a24/src/backends/libinput/device.cpp#L403-405
| 06:49:57 |
samueldr | (coupled with the fact it doesn't work) | 06:50:07 |
samueldr | am I understanding that bit right? | 06:50:19 |
K900 | samueldr: I have a horrible thing that does it with kconfig invocations but also yes | 06:56:41 |
samueldr | AFAIUI the plasmoid setup simply cannot be done because of arbitrary identifiers | 06:57:14 |
samueldr | the only method I found that worked was symlinking to /etc/xdg/whateverthenameofitwas | 06:57:40 |
samueldr | and hardcoding my current config :( | 06:57:52 |
K900 | Yeah the plasmoid setup is iffy | 06:58:00 |
K900 | I think there's a DBus endpoint that can run custom JS in the Plasma context | 06:58:30 |
K900 | But that's A Lot | 06:58:33 |
samueldr | even the "globals from system config" thing absolutely didn't work for plamoids, but does for other things like input | 06:58:33 |
samueldr | yeah, really a lot | 06:58:47 |
samueldr | do you understand enough of the C++ twisted passages of Qt+KDE to know if that kwin bit means the defaults simply aren't being applied? | 06:59:21 |
K900 | I just woke up and typing this from my phone tbh | 06:59:41 |
samueldr | I'll be testing (tomorrow) "just" adding (*it)->read(this, m_defaultConfig); | 06:59:46 |
K900 | I don't want to read C++ on my phonen | 06:59:50 |
K900 | * I don't want to read C++ on my phone | 06:59:53 |
samueldr | no worries, take any time you need before answering if you want to :) | 06:59:58 |
samueldr | I'm also confused... if the non-default config is valid, but user config is invalid... it will attempt to apply the user config anyway?? (and conversely) | 07:00:56 |
K900 | kconfig is kind of a huge mess tbh | 07:02:12 |
samueldr | here it's kwin! | 07:02:18 |
K900 | Yes, that's part of it | 07:02:27 |