Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -69,7 +70,9 @@ After installing from AUR, run ``sudo usermod -aG tty,input $USER`` to allow [ui
<details>
<summary>PC</summary>

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
Expand Down Expand Up @@ -102,6 +105,7 @@ You will have to use the desktop mode on the Steam Deck for installing and setti
<details>
<summary>PC</summary>

- 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)

</details>
Expand Down
4 changes: 3 additions & 1 deletion linvam/mouse/_nixcommon.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
File renamed without changes.
8 changes: 8 additions & 0 deletions scripts/configure-uinput-access-legacy.sh
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion scripts/configure-uinput-access.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 6 additions & 0 deletions scripts/install-legacy.sh
Original file line number Diff line number Diff line change
@@ -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/