diff options
-rw-r--r-- | README.md | 12 | ||||
-rwxr-xr-x | install.sh | 18 |
2 files changed, 28 insertions, 2 deletions
diff --git a/README.md b/README.md index 97c7194..6061e97 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,16 @@ <h1 align="center">Utility to generate keyd configurations for use on Chromebooks</h1> -# Instructions +## List of supported distributions +- Alpine +- Arch Linux +- Chimera Linux +- Debian +- Fedora +- openSUSE +- Ubuntu +- Void Linux + +### Instructions 1. git clone https://github.com/WeirdTreeThing/cros-keyboard-map 2. cd cros-keyboard-map 3. ./install.sh diff --git a/install.sh b/install.sh index 24f9fa2..9bad86c 100755 --- a/install.sh +++ b/install.sh @@ -2,7 +2,7 @@ set -e -# alpine, arch, and suse have packages +# void, alpine, arch, and suse have packages # need to build on fedora (without terra) and debian/ubuntu ROOT=$(pwd) @@ -20,6 +20,8 @@ elif [ -f /usr/bin/dnf4 ]; then distro="fedora" elif [ -f /sbin/apk ]; then distro="alpine" +elif [ -f /bin/xbps-install ]; then + distro="void" elif grep 'ID=nixos' /etc/os-release; then echo "NixOS is not supported by this script." echo "Bailing out..." @@ -60,6 +62,9 @@ if [ -z "$(which keyd 2>/dev/null)" ]; then alpine) $privesc apk add --no-interactive keyd &>> pkg.log ;; + void) + $privesc xbps-install -S keyd -y &>> pkg.log + ;; *) if [ "$FEDORA_HAS_KEYD" = "1" ]; then $privesc dnf4 install -y keyd &>> pkg.log @@ -110,6 +115,17 @@ case $distro in $privesc rc-service keyd restart fi ;; + void) + if [ -f /usr/bin/sv ]; then + $privesc ln -s /etc/sv/keyd /var/service + $privesc sv enable keyd + $privesc sv start keyd + else + echo "This script can only be used for Void Linux using 'runit' init system. Other init system on Void Linux are currently unsupported." + echo "I'M OUTTA HERE!" + exit 1 + fi + ;; *) $privesc systemctl enable keyd $privesc systemctl restart keyd |