From 9921aa8be6a40ffc483f06829b0ae3174764b50c Mon Sep 17 00:00:00 2001 From: WeirdTreeThing Date: Wed, 10 Apr 2024 17:58:03 -0400 Subject: Add special case for Sarien and Arcada --- configs/cros-sarien.conf | 39 +++++++++++++++++++++++++++++++++++++++ install.sh | 3 +++ 2 files changed, 42 insertions(+) create mode 100644 configs/cros-sarien.conf diff --git a/configs/cros-sarien.conf b/configs/cros-sarien.conf new file mode 100644 index 0000000..521faf0 --- /dev/null +++ b/configs/cros-sarien.conf @@ -0,0 +1,39 @@ +# Config for Sarien and its variant, Arcada +[ids] +# AT keyboard is device 0001:0001 +0001:0001 + +[main] +back = back +refresh = refresh +zoom = f11 +scale = scale +print = print +camera = brightnessdown +prog1 = brightnessup +mute = mute +volumedown = volumedown +volumeup = volumeup +sleep = coffee + +[meta] +back = f1 +refresh = f2 +zoom = f3 +scale = f4 +camera = f5 +prog1 = f6 +mute = f7 +volumedown = f8 +volumeup = f9 +switchvideomode = f12 + + +[alt] +backspace = delete +meta = capslock +camera = kbdillumdown +prog1 = kbdillumup + +[control+alt] +backspace = C-A-delete diff --git a/install.sh b/install.sh index 3a7bf69..ff79949 100755 --- a/install.sh +++ b/install.sh @@ -73,6 +73,9 @@ echo "Generating config" if (grep -E "^(Nocturne|Atlas|Eve)$" /sys/class/dmi/id/product_name &> /dev/null) then cp configs/cros-pixel.conf cros.conf +elif (grep -E "^(Sarien|Arcada)$" /sys/class/dmi/id/product_name &> /dev/null) +then + cp configs/cros-sarien.conf cros.conf else printf "By default, the top row keys will do their special function (brightness, volume, browser control, etc).\n" printf "Holding the search key will make the top row keys act like fn keys (f1, f2, f3, etc).\n" -- cgit 1.4.1-2-gfad0