From 9fcc286959c7f2d72f86fbf59533ebc66c4ee775 Mon Sep 17 00:00:00 2001 From: WeirdTreeThing Date: Wed, 29 Nov 2023 13:54:50 -0500 Subject: Add special case for pixel devices --- install.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'install.sh') diff --git a/install.sh b/install.sh index b8a76d9..c7f6fcd 100755 --- a/install.sh +++ b/install.sh @@ -64,7 +64,13 @@ if ! [ -f /usr/bin/keyd ]; then fi echo "Generating config" -python3 cros-keyboard-map.py +# Handle any special cases +if (grep -E "^(Nocturne|Atlas|Eve)$" /sys/class/dmi/id/product_name &> /dev/null) +then + cp configs/cros-pixel.conf cros.conf +else + python3 cros-keyboard-map.py +fi echo "Installing config" $privesc mkdir -p /etc/keyd -- cgit 1.4.1-2-gfad0