rvaiya / warpd

A modal keyboard-driven virtual pointer
MIT License
2.85k stars 126 forks source link

config file does not work #215

Open shriharip opened 1 year ago

shriharip commented 1 year ago

Hello, Thanks for the efforts and the wonderful program. I am on Mac OS 12 version Monterey .

There are couple of issues in here .

  1. I have a config file at ~/.config/warpd/config. however when I try to run warpd the config file is not considered I think, The values set there does not work My config file is simple

    hint_activation_key: leftmeta
    hint_activation_key : j
    speed: 400

    I have also tried putting the leftmeta j in single line and also using hint_mode: leftmeta j This also does not work.

  2. when I run warpd --list-options it results in unrecognised option list-options

Thanks

rvaiya commented 1 year ago

The values set there does not work

Make sure you reload warpd (launchctl kickstart -k gui/$UID/com.warpd.warpd) after updating the file.

Also be aware that:

hint_activation_key : j

will cause j to function as the activation key (activate warpd while it is inactive), which is probably not what you want. If you want <command>+j to activate warpd, then you should set hint_activation_key: M-j, but if you want j to activate hint mode while warpd is already active (i.e in normal mode), then you should set the hint option.

when I run warpd --list-options it results in unrecognised option list-options

Which version are you running? (warpd -v). This works for me as of 2f29c370.

shriharip commented 1 year ago

Hello, Thanks very much for the reply. It did help me with some of the things. First the --list-options is now working. Looks like I was on version 1.2 and the upgrade did the trick

Second, I still have issues with the config file.

Some weird things happen with this config file when I run the command launchctl kickstart -k ....

Best,

rvaiya commented 1 year ago

Please ensure you are building from the latest commit ( b2792bfb) (a new release should be out soon). You no longer need to manually restart warpd using kickstart, as I've added hot config reloading (you can just edit the config file). If this still doesn't work, please post the output of cat ~/.config/warpd/config.