#!/bin/bash

echo "Installing Dependencies"

# Install xCode cli tools
echo "Installing commandline tools..."
xcode-select --install

# Essentials
brew install lua
brew install sketchybar --cask FelixKratz/formulae
brew install wezterm
brew install borders
brew install --cask nikitabobko/tap/aerospace
brew install wget
brew install jq
brew install fzf

# Nice to have
brew install --cask raycast
brew install --cask 1password
brew install --cask btop
brew install switchaudio-osx
brew install nowplaying-cli
brew install thefuck
brew install htop

# Terminal
brew install neovim
brew install zoxide
brew install eza
brew install starship

# Fonts
brew install --cask sf-symbols
brew install --cask homebrew/cask-fonts/font-sf-mono
brew install --cask homebrew/cask-fonts/font-sf-pro

curl -L https://github.com/kvndrsslr/sketchybar-app-font/releases/download/v2.0.25/sketchybar-app-font.ttf -o $HOME/Library/Fonts/sketchybar-app-font.ttf

# SbarLua
(git clone https://github.com/FelixKratz/SbarLua.git /tmp/SbarLua && cd /tmp/SbarLua/ && make install && rm -rf /tmp/SbarLua/)

# Start Services
echo "Starting Services (grant permissions)..."
brew services start sketchybar
brew services start borders