-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtuxelbook.sh
60 lines (53 loc) · 2.02 KB
/
tuxelbook.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/bin/bash -x
echo '
_______ _ _ _ _____ ____
|__ __| | | | | | / ____|/ __ \
| |_ ___ _____| | |__ ___ ___ | | _| | __| | | |
| | | | \ \/ / _ \ | _ \ / _ \ / _ \| |/ / | |_ | | | |
| | |_| |> < __/ | |_) | (_) | (_) | <| |__| | |__| |
|_|\__ _/_/\_\___|_|_.__/ \___/ \___/|_|\_\\_____|\____/
'
# Function to prompt user with given message
prompt_user() {
local message=$1
local options=$2
local response
while true; do
read -p "$message $options: " response
case $response in
[Yy]* ) return 0;;
[Ss]* ) return 1;;
[EeXx]* ) exit;;
* ) echo "Please answer yes (y), skip (s), or exit (e/x).";;
esac
done
}
# Setup Keyboard
if prompt_user "The following script will setup the keyboard on the Pixelbook Go, would you like to continue?" "(yes/y, skip/s, exit/e/x)"; then
sudo cp 60-keyboard.hwdb root/lib/udev/hwdb.d
cd
git clone https://github.com/WeirdTreeThing/cros-keyboard-map
cd cros-keyboard-map
./install.sh
fi
# Setup Audio
if prompt_user "The following script will setup the audio on the Pixelbook Go, would you like to continue?" "(yes/y, skip/s, exit/e/x)"; then
cd
git clone https://github.com/WeirdTreeThing/chromebook-linux-audio.git
cd chromebook-linux-audio/
./setup-audio
fi
# Setup Halmak Keyboard Layout
if prompt_user "The following script will setup the Halmak keyboard layout, would you like to continue?" "(yes/y, skip/s, exit/e/x)"; then
cd
git clone https://github.com/mirrorsonthewall/halmaklinuxsupport.git
cd halmaklinuxsupport/halmak-linux/
sudo cp zz /usr/share/X11/xkb/symbols/ && cp evdev.xml /usr/share/X11/xkb/rules/
fi
# Firmware Update/Removal
if prompt_user "The following script will run the firmware updater/remover, would you like to continue?" "(yes/y, skip/s, exit/e/x)"; then
cd
git clone https://github.com/MrChromebox/scripts
cd scripts/
sh firmware-util.sh
fi