mirror of
https://github.com/danbee/mac-setup
synced 2025-03-04 08:39:10 +00:00
Setup chunkwm
This commit is contained in:
parent
7bee40d2de
commit
03e9e435dc
14
lib/chunkwm.sh
Executable file
14
lib/chunkwm.sh
Executable 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
|
||||||
8
setup.sh
8
setup.sh
@ -22,6 +22,10 @@ if [ ! -f "$HOME/.ssh/id_ed25519.pub" ]; then
|
|||||||
read -r -p "Press any key to continue... " -n 1
|
read -r -p "Press any key to continue... " -n 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if ! ssh-add -L -q > /dev/null ; then
|
||||||
|
ssh-add
|
||||||
|
fi
|
||||||
|
|
||||||
# Install Homebrew
|
# Install Homebrew
|
||||||
step "Installing Homebrew"
|
step "Installing Homebrew"
|
||||||
if ! type brew > /dev/null; then
|
if ! type brew > /dev/null; then
|
||||||
@ -44,6 +48,10 @@ fi
|
|||||||
step "Installing Homebrew bundle"
|
step "Installing Homebrew bundle"
|
||||||
brew bundle --file="$MAC_SETUP_DIR/Brewfile"
|
brew bundle --file="$MAC_SETUP_DIR/Brewfile"
|
||||||
|
|
||||||
|
# Setup `chunkwm`
|
||||||
|
step "Setting up ChunkWM"
|
||||||
|
"$MAC_SETUP_DIR/lib/chunkwm.sh"
|
||||||
|
|
||||||
# Install Mac App Store apps
|
# Install Mac App Store apps
|
||||||
step "Installing App Store apps"
|
step "Installing App Store apps"
|
||||||
"$MAC_SETUP_DIR/lib/mas.sh"
|
"$MAC_SETUP_DIR/lib/mas.sh"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user