1
0
mirror of https://github.com/danbee/mac-setup synced 2025-03-04 08:39:10 +00:00
mac-setup/lib/chunkwm.sh
Daniel Barber a67e85a036
Use process substitution to run the script
This ensures that we can get input from the terminal.
2019-04-22 22:25:50 -04:00

15 lines
475 B
Bash
Executable File

#!/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