#!/bin/zsh

linux_wm_and_utils() {
    # TODO: pick wm for linux; options: dwm, i3, others?
    echo "linux_wm_and_utils not yet implemented"
}

macos_wm_and_utils() {
    brew install koekeishiya/formulae/skhd
    skhd --start-service
    sleep 14 # time to give permission in accessibility settings
    skhd --restart-service

    # NOTE: currently, aerospace seems to need system restart to take effect
    brew install --cask nikitabobko/tap/aerospace
}

[[ "$BOX_SETUP_OS" = "macos" ]] && macos_wm_and_utils || linux_wm_and_utils
