1
0
mirror of https://github.com/danbee/mac-setup synced 2025-03-04 08:39:10 +00:00

Setup chunkwm

This commit is contained in:
Daniel Barber 2019-04-16 14:10:52 -04:00
parent 7bee40d2de
commit 03e9e435dc
Signed by: danbarber
GPG Key ID: 931D8112E0103DD8
2 changed files with 22 additions and 0 deletions

14
lib/chunkwm.sh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/sh
# Ask the user to generate a code signing key for `chunkwm`
echo "Please generate a code signing certificate called 'chunkwm-cert' in Keychain Access"
read -r -p "Press any key to continue... " -n 1
# We need to code sign chunkwm and skhd in order for them to be added to the
# accessibility allowed list.
codesign -fs "chunkwm-cert" $(which chunkwm)
codesign -fs "chunkwm-cert" $(which skhd)
# Start chunkwm
brew services start chunkwm
brew services start skhd

View File

@ -22,6 +22,10 @@ if [ ! -f "$HOME/.ssh/id_ed25519.pub" ]; then
read -r -p "Press any key to continue... " -n 1
fi
if ! ssh-add -L -q > /dev/null ; then
ssh-add
fi
# Install Homebrew
step "Installing Homebrew"
if ! type brew > /dev/null; then
@ -44,6 +48,10 @@ fi
step "Installing Homebrew bundle"
brew bundle --file="$MAC_SETUP_DIR/Brewfile"
# Setup `chunkwm`
step "Setting up ChunkWM"
"$MAC_SETUP_DIR/lib/chunkwm.sh"
# Install Mac App Store apps
step "Installing App Store apps"
"$MAC_SETUP_DIR/lib/mas.sh"