Adds bootstrap.v2

This commit is contained in:
Michel Fedde 2025-04-21 22:19:46 +02:00
parent 06c8003cf2
commit 2bbccb4595
61 changed files with 468 additions and 4 deletions

View file

@ -0,0 +1,31 @@
#!/bin/env bash
addApplications evremap
keymap() {
sudo gpasswd -a $USER input
echo 'KERNEL=="uinput", GROUP="input"' | sudo tee /etc/udev/rules.d/input.rules
mkdir -p $HOME/.log
}
check() {
if ! id | grep input >>/dev/null; then
return 0
fi
if [ ! -f "/etc/udev/rules.d/input.rules" ]; then
return 0
fi
if [ ! -d "$HOME/.log" ]; then
return 0
fi
return 1
}
if check; then
addActions keymap
fi