A simple shell script that allows the user to connect his Keychron Bluetooth Keyboard with a Linux powered machine. This - alt least for me - is sometimes a problem. The device does not want to reconnect and i have to manually unpair and re-pair the two devices. Because of this i created this script and if you want you can use it too.
In no way affiliated with Keycron! Use at your own risk!
replace any metion of USER in these instructions and in the files from this repository with your own user logon name (see /home/USER/)
- Create a new group using
~# groupadd keychron
(as root or sudo) - Add yourself to the group using
~# usermod -a -G keychron USER
(as root or sudo) - Copy /etc/sudoers.d/keychron (from this repository) into the same folder on your device (as root or sudo)
- Set the needed File-Permissions on the copied File with
~# chmod 400 /etc/sudoers.d/keychron
(as root or sudo) - Logout and log back in once to let the group change take effect.
- Copy /home/USER/.local/bin/keychron-keyboard-connect.sh (from this repository) into the same folder on your device (as your unprivileged user)
- Make the File executable by the owner by using
~$ chmod u+x /home/USER/.local/bin/keychron-keyboard-connect.sh
(as your unprivileged user) - Copy "/home/USER/.local/share/applications/Keychron Connect.desktop"