Skip to content

Commit

Permalink
Add setup_karabiner.zsh script
Browse files Browse the repository at this point in the history
  • Loading branch information
andyjakubowski committed Sep 15, 2021
1 parent 2d0d625 commit 91a2064
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions install.conf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
command: ./setup_homebrew.zsh
stdout: true
stderr: true
-
command: ./setup_karabiner.zsh
stdout: true
stderr: true
-
command: ./setup_zsh.zsh
stdout: true
Expand Down
11 changes: 11 additions & 0 deletions setup_karabiner.zsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env zsh

echo "\n<<< Starting Karabiner Elements (keyboard customizer) Setup >>>\n"

if ! sudo --validate --non-interactive 1>/dev/null 2>&1; then
echo "Enter superuser (sudo) password to apply the user Karabiner Elements config to all users on this Mac:"
fi

sudo '/Library/Application Support/org.pqrs/Karabiner-Elements/bin/karabiner_cli' --copy-current-profile-to-system-default-profile

echo "\n<<< ✔ Karabiner Elements Setup Done >>>\n"

0 comments on commit 91a2064

Please sign in to comment.