wayfire icon indicating copy to clipboard operation
wayfire copied to clipboard

Ability to disable inputs

Open alexherbo2 opened this issue 5 years ago • 4 comments

I’d like an equivalent to swaymsg -t get_inputs and swaymsg input 1:1:AT_Translated_Set_2_keyboard events toggle to disable the native keyboard.

alexherbo2 avatar Nov 15 '20 17:11 alexherbo2

You can do that from a plugin, do you want this as an IPC command?

ammen99 avatar Nov 15 '20 17:11 ammen99

Not necessarily, it is fine from the config file as it hot reloads.

I just hope it is not an extra plugin, as I haven’t figured out yet how to install plugins on NixOS.

How can I do it?

alexherbo2 avatar Nov 15 '20 19:11 alexherbo2

From the config reload, we'd need a new option. Right now there is only API for plugins -l mk if you're willing to write a plugin, otherwise, please wait, this will eventually be implemented ;)

ammen99 avatar Nov 15 '20 19:11 ammen99

I just hope it is not an extra plugin, as I haven’t figured out yet how to install plugins on NixOS.

How can I do it?

Exactly my question!

tasmo avatar Feb 18 '22 21:02 tasmo

Wayfire's IPC can support this (the necessary functions were present even in the 0.8.1 release). I added an example script in #2216 where you can see how to list and enable/disable inputs.

ammen99 avatar Mar 13 '24 21:03 ammen99