-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.sh
58 lines (38 loc) · 1.53 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/sh
RED='\033[0;31m'
NC='\033[0m' # No Color
echo "Window management setup commenced..."
echo "Checking for Homebrew ☕️"
# Check for Homebrew and install if we don't have it
if test ! $(which brew); then
echo "Homebrew was not found. Installing Homebrew..."
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
# Update Homebrew recipes
brew update
echo "Installing dependencies"
# Install Slate window management
brew cask install slate
# Install Karabiner-elements for hyper key
brew cask install karabiner-elements
echo "Dependencies installed. Fetching ragnar-h configs"
# Slate configs
curl -o ~/.slate https://raw.githubusercontent.com/Ragnar-H/slate-setup/master/.slate
mkdir ~/.config
mkdir ~/.config/karabiner
# Karabiner elements
curl -o ~/.config/karabiner/karabiner.json https://raw.githubusercontent.com/Ragnar-H/slate-setup/master/karabiner.json
echo "Configs set. Slate and Karabiner-elements might require a reload to take effect"
echo "Your caps-lock has now been converted to a Hyper key"
echo "${RED}Opening Slate and Karabiner-elements for you${NC}\n"
open -a Karabiner-Elements
open -a Slate
echo "Try the following combinations:"
echo "Caps-lock + R : move focused window to the right"
echo "Caps-lock + L : move focused window to the left"
echo "Caps-lock + F : fullscreen"
echo "Caps-lock + M : focus Spotify"
echo "Caps-lock + W : focus Chrome"
echo "Caps-lock + T : focus iterm2"
echo "Caps-lock + E : focus VSCode"
echo "These configs can found in ~/.slate"