Fix install script

This commit is contained in:
xenia 2024-06-21 15:07:07 +02:00
parent 480e965293
commit 9746efe477

View File

@ -1,4 +1,7 @@
#!/bin/sh
name="AGDA$RANDOM"
python3 kbtrans/agda_input_method.py svorak.keylayout '/Library/Keyboard\ Layouts/agda.keylayout' --name "$name" && echo "(generated $name)"
cp '/Library/Keyboard\ Layouts/agda.keylayout' '~/Library/Keyboard Layouts/agda.keylayout'
python3 kbtrans/agda_input_method.py svorak.keylayout '/Library/Keyboard Layouts/agda.keylayout' --name "$name" && echo "(generated $name)"
cp '/Library/Keyboard Layouts/agda.keylayout' "$HOME/Library/Keyboard Layouts/agda.keylayout"
cp svorak.keylayout '/Library/Keyboard Layouts/agda.keylayout'
cp '/Library/Keyboard Layouts/svorak.keylayout' "$HOME/Library/Keyboard Layouts/svorak.keylayout"