Adds bootstrap.v2
This commit is contained in:
parent
06c8003cf2
commit
2bbccb4595
61 changed files with 468 additions and 4 deletions
31
.config/yadm/bootstrap.v2/applications/20-Keymap.sh
Executable file
31
.config/yadm/bootstrap.v2/applications/20-Keymap.sh
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue