Skip to content

Commit

Permalink
Fix keyboard copy
Browse files Browse the repository at this point in the history
  • Loading branch information
Jendker committed Aug 12, 2024
1 parent 3f7afe6 commit f2e4491
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions macos/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,16 @@ ROOT_DIR=$(dirname "$SCRIPT_DIR")

$ROOT_DIR/set_up_common.sh

mkdir -p "$HOME/Library/Keyboard Layouts/"
cp "/Users/jedrzej/Library/Mobile Documents/com~apple~CloudDocs/Random/Keyboard Layouts/Polish-German.bundle" "$HOME/Library/Keyboard Layouts/"
echo "Reboot and add the Polish-German keyboard layout from Polish keyboards"
cp ROOT_DIR/dotfiles_private/fonts/* ~/Library/Fonts/
KEYBOARD_SOURCE_PATH="$HOME/Library/Mobile Documents/com~apple~CloudDocs/Random/Keyboard Layouts/Polish-German.bundle"
KEYBOARD_TARGET_PATH="$HOME/Library/Keyboard Layouts/Polish-German.bundle"
if [ -e "$KEYBOARD_SOURCE_PATH" ] && [ ! -e $KEYBOARD_TARGET_PATH ]; then
cp "$KEYBOARD_SOURCE_PATH" "$KEYBOARD_TARGET_PATH"
echo "Reboot and add the Polish-German keyboard layout from Polish keyboards"
fi
cp $ROOT_DIR/dotfiles_private/fonts/* ~/Library/Fonts/

SSH_CONFIG_PATH=/etc/ssh/sshd_config.d/100-macos.conf
if ! grep -Fxq "PasswordAuthentication no" "$SSH_CONFIG_PATH"; then
echo "PasswordAuthentication no" >> "$SSH_CONFIG_PATH"
echo "ChallengeResponseAuthentication no" >> "$SSH_CONFIG_PATH"
sudo bash -c 'echo "PasswordAuthentication no" >> "$SSH_CONFIG_PATH"'
sudo bash -c 'echo "ChallengeResponseAuthentication no" >> "$SSH_CONFIG_PATH"'
fi

0 comments on commit f2e4491

Please sign in to comment.