diff --git a/README.md b/README.md index f15da84..f688e52 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,7 @@ Currently supported languages (just for voice input, UI is in English): - Chinese - French - German +- Spanish Utilising [VOSK-API](https://github.com/alphacep/vosk-api), a lightweight voice to text engine you can specify voice commands for the tool to recognise and actions to perform. @@ -69,7 +70,9 @@ After installing from AUR, run ``sudo usermod -aG tty,input $USER`` to allow [ui
PC -The recommended way for the manual installation is by using [`pipx`](https://pypa.github.io/pipx/) to benefit from isolated environments +The recommended way for the manual installation is by using [`pipx`](https://pypa.github.io/pipx/) to benefit from isolated environments. + +Existing scripts expect that your OS is using a modern `systemd` with a session-based model (`uaccess`) and `udev` rules - Download the latest release source code from the [Releases page](https://github.com/stele95/LinVAM/releases), extract it, enter scripts folder, open terminal in that folder and execute the following command: sh install.sh @@ -102,6 +105,7 @@ You will have to use the desktop mode on the Steam Deck for installing and setti
PC +- Existing scripts expect that your OS is using a modern `systemd` with a session-based model (`uaccess`) and `udev` rules - Run ``configure-uinput-access.sh`` from the scripts folder if you didn't install by running ``install.sh``, this will set up [Udev rule for input](#udev-rule-for-input)
diff --git a/linvam/mouse/_nixcommon.py b/linvam/mouse/_nixcommon.py index 2ef41ef..bfea4cc 100644 --- a/linvam/mouse/_nixcommon.py +++ b/linvam/mouse/_nixcommon.py @@ -153,8 +153,10 @@ def start_reading(device): self.event_queue.put(device.read_event()) for device in self.devices: + if device is None: + continue thread = Thread(target=start_reading, args=[device]) - thread.setDaemon(True) + thread.daemon = True thread.start() def read_event(self): diff --git a/rules/12-input.rules b/rules/12-input-legacy.rules similarity index 100% rename from rules/12-input.rules rename to rules/12-input-legacy.rules diff --git a/scripts/configure-uinput-access-legacy.sh b/scripts/configure-uinput-access-legacy.sh new file mode 100755 index 0000000..ec86d42 --- /dev/null +++ b/scripts/configure-uinput-access-legacy.sh @@ -0,0 +1,8 @@ +#!/bin/bash +set -e +sudo usermod -aG tty,input,plugdev $USER +sudo cp ../rules/12-input-legacy.rules /etc/udev/rules.d/ +sudo cp ../rules/50-uinput.rules /etc/udev/rules.d/ +sudo cp ../rules/80-uinput.rules /etc/udev/rules.d/ +sudo udevadm control --reload +sudo udevadm trigger diff --git a/scripts/configure-uinput-access.sh b/scripts/configure-uinput-access.sh index 6f09c9a..170f588 100755 --- a/scripts/configure-uinput-access.sh +++ b/scripts/configure-uinput-access.sh @@ -1,7 +1,7 @@ #!/bin/bash set -e sudo usermod -aG tty,input $USER -sudo cp ../rules/12-input.rules /etc/udev/rules.d/ +sudo cp ../rules/12-input-arch.rules /etc/udev/rules.d/12-input.rules sudo cp ../rules/50-uinput.rules /etc/udev/rules.d/ sudo cp ../rules/80-uinput.rules /etc/udev/rules.d/ sudo udevadm control --reload diff --git a/scripts/install-legacy.sh b/scripts/install-legacy.sh new file mode 100755 index 0000000..6e9f002 --- /dev/null +++ b/scripts/install-legacy.sh @@ -0,0 +1,6 @@ +#!/bin/bash +set -e +. ./configure-uinput-access-legacy.sh +pipx install .. +sudo cp ../LinVAM.desktop /usr/share/applications/ +sudo cp ../linvam/assets/icons/linvam.svg /usr/share/icons/hicolor/scalable/apps/