Docker is not recommended for desktop environments because it limits many modules which can't run properly. Firstly you should download LNXlink image and setup the config directory:
docker run --network host -v ~/Documents/LNXlink/:/opt/lnxlink/config/ -it bkbillybk/lnxlink:latest
This installs LNXlink as a development platform which is helpful if you want to create your own changes or create a new module. Read on the Development section for more information.
# Fork my repository and then download it
git clone https://github.com/bkbilly/lnxlink.git
# Install lnxlink as editable package
cd lnxlink
pip3 install -e .
# Run it manually
lnxlink -c config.yaml
Run sudo commands
Some commands need to run as a root user. To fix this, you need to allow some of them to run without asking for password:
# Edit the sudoers file:
sudo visudo
# Add this line at the end (replace USER with your username):
USER ALL=(ALL) NOPASSWD: /usr/sbin/grub-reboot
Uninstall
Remove LNXlink from your system.
# Disables systemd service
systemctl --user disable lnxlink.service
# Remove systemd service
rm ~/.config/systemd/user/lnxlink.service
# Uninstall the package
pip3 uninstall -U lnxlink
# Disables systemd service
sudo systemctl disable lnxlink.service
# Remove systemd service
sudo rm /etc/systemd/system/lnxlink.service
# Uninstall the package
sudo pip3 uninstall -U lnxlink
sudo pip3 uninstall lnxlink