input-remapper
input-remapper copied to clipboard
Custom config directory
The configuration directory can be set by using --config-dir
with input-remapper-control
. However, this option is not offered with input-remapper-gtk
or any of the other executables. This makes it impossible to edit the presets located in those directories.
I came across this because I have a non-standard xdg-config-home
among other directories. So this defaulting to .config/input-remapper
is a bit annoying for me.
I tried looking into the codebase to see how easily it would be to use the actual XDG_CONFIG_HOME
variable but it seems to be a bit more involved than just a simple edit to the user.py
. I think it would be great to incorporate the actual XDG_CONFIG_HOME
variable as well as allowing the user to set the config directory when running input-remapper-service
.
Did you look at the beta source? I am not sure how it is set up on main, but it should be relative simple to implement this in beta:
- I think it makes sense to merge
user.py
intoconfigs/paths.py
they are both short and closely related. - update
paths.py
because.config/input-remapper
is currently hard-coded in line 33 - go through the source and make sure we always use the
HOME
,USER
andCONFIG_PATH
constants formpaths.py
and not some other hard-coded paths.
Sorry, I messed up with a previous request. Now I fixed it. Again, this is just an example of what can be done. It appears to me that paths.py
will be used by the daemon as well.