# frozen_string_literal: true

#
# Setup
#

hostname = `hostname -s`.strip
cask_args appdir: '/Applications'

tap 'homebrew/cask'
tap 'homebrew/cask-drivers'
tap 'homebrew/cask-versions'

#
# Command-Line Tools (Brew)
#

brew 'ack'
brew 'aspell'
brew 'bash'
brew 'caddy'
brew 'cmake'
brew 'colordiff'
brew 'coreutils'
brew 'ctop'
brew 'efm-langserver'
brew 'fd'
brew 'geckodriver'
brew 'git'
brew 'git-crypt'
brew 'git-delta'
brew 'go'
brew 'hadolint'
brew 'hey'
brew 'highlight'
brew 'htop'
brew 'httpie'
brew 'jq'
brew 'less'
brew 'libvterm'
brew 'logrotate'
brew 'lua'
brew 'luarocks'
brew 'make'
brew 'mas'
brew 'mosh', args: ['HEAD']
brew 'node'
brew 'pandoc'
brew 'peco'
brew 'pgformatter'
brew 'readline'
brew 'redis'
brew 'ripgrep'
brew 'rustup-init'
brew 'shellcheck'
brew 'shfmt'
brew 'source-highlight'
brew 'svn'
brew 'telnet'
brew 'terraform'
brew 'terraform-ls'
brew 'tflint'
brew 'the_silver_searcher'
brew 'tldr'
brew 'tmux'
brew 'trash'
brew 'tree'
brew 'watch'
brew 'wget'
brew 'yank'
brew 'zsh'

tap 'heroku/brew'
brew 'heroku'

#
# Desktop Apps (Cask)
#

# Core Apps
cask '1password'
cask '1password-cli'
cask 'alfred'
cask 'appcleaner'
cask 'bartender'
cask 'betterzip'
cask 'bitbar'
cask 'daisydisk'
cask 'firefox'
cask 'fluid'
cask 'google-chrome'
cask 'gpg-suite'
cask 'hammerspoon'
cask 'iina'
cask 'intel-power-gadget'
cask 'istat-menus'
cask 'iterm2'
cask 'karabiner-elements'
cask 'logitech-options'
cask 'mplayerx'
cask 'name-mangler'
cask 'osxfuse'
cask 'resolutionator'
cask 'soulver2'
cask 'stay'
cask 'ubersicht'
cask 'vlc'

# Fonts
tap 'homebrew/cask-fonts'
cask 'font-clear-sans'
cask 'font-menlo-for-powerline'
cask 'font-office-code-pro'
cask 'font-open-sans'
cask 'font-open-sans-condensed'
cask 'font-terminus'
cask 'font-ubuntu'
cask 'font-xkcd'

# Work Apps
cask 'bbedit'
cask 'chromedriver'
cask 'cyberduck'
cask 'dash'
cask 'docker'
cask 'drawio'
cask 'fork'
cask 'hex-fiend'
cask 'insomnia'
cask 'kaleidoscope'
cask 'keycastr'
cask 'licecap'
cask 'paw'
cask 'postico'
cask 'robo-3t'
cask 'sequel-pro'
cask 'slack'
cask 'transmit'
cask 'vagrant'
cask 'virtualbox'
cask 'visual-studio-code'

# noct
if hostname == 'noct'
  brew 'ffmpeg', args: %w[
    with-fdk-aac
    with-libass
    with-librsvg
    with-libsoxr
    with-libssh
    with-libvidstab
    with-openh264
    with-openssl
    with-rubberband
    with-srt
    with-tesseract
    with-webp
  ]
  brew 'get_iplayer'

  cask 'basecamp'

  brew 'go-jsonnet'
  brew 'influxdb'
  brew 'jsonnet-bundler'
  brew 'kubernetes-cli'
  brew 'helm'
  brew 'kubectx'
  brew 'mariadb'
  cask 'lens'

  brew 'grafana'
  brew 'node_exporter'
  brew 'prometheus'

  cask '4k-video-downloader'
  cask 'adobe-creative-cloud'
  cask 'aegisub'
  cask 'android-file-transfer'
  cask 'android-platform-tools'
  cask 'audio-hijack'
  cask 'authy'
  cask 'autodmg'
  cask 'avidemux'
  cask 'balenaetcher'
  cask 'calibre'
  cask 'deluge'
  cask 'discord-ptb'
  cask 'dropshare'
  cask 'epic-games'
  cask 'evernote'
  cask 'get-iplayer-automator'
  cask 'gog-galaxy'
  cask 'handbrake'
  cask 'istumbler'
  cask 'kapitainsky-rclone-browser'
  cask 'keybase'
  cask 'little-snitch'
  cask 'mailplane'
  cask 'makemkv'
  cask 'messenger'
  cask 'mkvtoolnix'
  cask 'monodraw'
  cask 'notion'
  cask 'openemu'
  cask 'paparazzi'
  cask 'parallels'
  cask 'plex'
  cask 'pocket-casts'
  cask 'qlcolorcode'
  cask 'qlimagesize'
  cask 'qlmarkdown'
  cask 'qlprettypatch'
  cask 'qlstephen'
  cask 'qlvideo'
  cask 'quicklook-csv'
  cask 'quicklook-json'
  cask 'quicklookapk'
  cask 'scroll-reverser'
  cask 'sixtyforce'
  cask 'skype'
  cask 'soundsource'
  cask 'spotify'
  cask 'steam'
  cask 'suspicious-package'
  cask 'tableplus'
  cask 'teamspeak-client'
  cask 'transmission'
  cask 'virtualc64'
  cask 'viscosity'
  cask 'vmware-fusion'
  cask 'vnc-viewer'
  cask 'webpquicklook'
  cask 'whatsapp'
  cask 'xld'
  cask 'zoom'

  # Mac App Store Apps
  mas 'Apple Remote Desktop', id: 409_907_375
  mas 'Awaken', id: 404_221_531
  mas 'Bear', id: 1_091_189_122
  mas 'Blackmagic Disk Speed Test', id: 425_264_550
  mas 'GoodNotes 5', id: 1_444_383_602
  mas 'HTTP Client', id: 418_138_339
  mas 'HiddenMe', id: 467_040_476
  mas 'Medis', id: 1_063_631_769
  mas 'Microsoft Remote Desktop 10', id: 1_295_203_466
  mas 'MindNode', id: 1_289_197_285
  mas 'Pocket', id: 568_494_494
  mas 'Reeder 3', id: 880_001_334
  mas 'Spark', id: 1_176_895_641
  mas 'Textual 7', id: 1_262_957_439
  mas 'Things 3', id: 904_280_696
  mas 'Twitter', id: 1_482_454_543
  mas 'WireGuard', id: 1_451_685_025
  mas 'feedly', id: 865_500_966

  # Safari Extensions
  mas 'AdGuard for Safari', id: 1_440_147_259
  mas 'Cascadea', id: 1_432_182_561
  mas 'Dark Reader for Safari', id: 1_438_243_180
  mas 'Evernote Web Clipper', id: 1_481_669_779
  mas 'Octotree Pro', id: 1_457_450_145
  mas 'Save to Pocket', id: 1_477_385_213
end
