Skip to content

nclark/dotfiles

Repository files navigation


Main projects used

Inspiration: r/unixporn

Initial setup

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew analytics off
brew install yadm gpg
yadm clone git@github.com:nclark/dotfiles.git
git clone [other repo] $HOME/workspace/dotfiles-private
$HOME/.config/bin/install-packages
$HOME/.config/bin/install-asdf-packages
yadm decrypt
yadm alt
mas signin # Note - currently broken for M1, signin via app store
$HOME/.config/bin/install-macapps
sudo reboot # launchctl is too confusing... just let it pick up the new service

Work vs. Personal machine

  • Set yadm class
  • Personal: yadm config local.class Personal
  • Work: yadm config local.class Work
  • Access class: yadm config --get local.class

Encrypt files

  • Add
    • Add to .config/yadm/encrypt
    • yadm encrypt
    • cd $HOME/workspace/dotfiles-private ; ./commit
  • Install
    • yadm decrypt
  • List
    • yadm decrypt -l

Notes

yabai

  • SIP
  • Scripting addition
  • In System Preferences, navigate to Mission Control and uncheck the option "Automatically rearrange Spaces based on most recent use"
  • brew install koekeishiya/formulae/yabai
  • sudo yabai --install-sa
  • yabai --start-service
  • After upgrade
    • sha256sum /opt/homebrew/bin/yabai | awk '{print $1}' | pbcopy
    • sudo mkdir /private/etc/sudoers.d
    • sudo visudo -f /private/etc/sudoers.d/yabai
    • update checksum
    • yabai --restart-service

skhd

  • brew install koekeishiya/formulae/skhd
  • skhd --start-service

sketchybar

  • brew services start felixkratz/formulae/sketchybar
  • On work machine, edit /opt/homebrew/Cellar/sketchybar/[version]/homebrew.mxcl.sketchybar.plist
  • Add to the EnvironmentVariables section of the property list
<key>WORK_MACHINE</key>
<string>true</string>
  • then restart brew services restart sketchybar

Librewolf

Chromium

neovim

  • /Library/Developer/CommandLineTools/usr/bin/python3 -m pip install --upgrade pip
  • python3 -m pip install --user --upgrade pynvim
  • :PlugInstall
  • :UpdateRemotePlugins
  • M1 workaround
      cd $HOME/.vim/plugged/LanguageClient-neovim
      ./install.sh
    

syncthing

Amphetamine

Start on launch

  • Amphetamine
  • Bartender
  • Better Touch Tool
  • Cleanshot X
  • Flux
  • MeetingBar
  • Nextcloud
  • Things Helper

THESE ARE MY DOTFILES

gary