bin/focusmode-enable
#!/bin/bash
# Copyright 2018 Joe Block <jpb@unixorn.net>
if [[ "$(uname -s)" != 'Darwin' ]]; then
echo 'Sorry, this script only works on macOS'
exit 1
fi
# Enable Focus Mode (aka Single App Mode)
defaults write com.apple.dock single-app -bool true && killall Dock