Skip to content

kallgren/dotfiles

Repository files navigation

Kallgren's dotfiles 🙃

Setup

Clone the repository

You know the drill:

git clone git@github.com:kallgren/dotfiles.git ~

Install applications

  1. Install Homebrew
  2. cd ~/dotfiles
  3. brew bundle (Installs applications listed in Brewfile)
  4. Configure BetterTouchTool and Flux to run at startup

(Note: this is not a complete list of applications as of 2025-11-25)

Symlink configs

I handle configs by symlinking with GNU Stow (which you just installed through Homebrew).

Note

Specify each desired package individually as not all folders in this repo are meant for stowing

stow --no-folding zsh tmux vim code stow claude

Configure applications

VS Code extensions

  1. Open up this repository with VS Code and install any relevant recommended extensions

Terminal

  1. Install Oh My ZSH!

BetterTouchTool

  1. Import btt/kallgren.bttpreset
  2. Adjust trackpad rotate gesture settings (for knob-style volume control) (because it is not included in settings export):
    • Rotate block time: 0.01
    • Set needed rotation amount (degree): ~3

The preset includes:

  • App toggle keybindings (on left hand on my keyboard) for commonly used applications, using Hyper (Shift + Ctrl + Option + Command)
  • Window management keybindings (on right hand on my keyboard) using Hyper with logical placements (exploiting symbol combos to extend options, and using num layer for more complex or specific window configurations, see ZMK config)
  • Touch gestures for volume and brightness control
  • Clipboard history on Hyper + v

macOS

  • Setup Alt + Tab to toggle windows within application

Folder structure

This is my preferred folder structure for my coding projects.

~/Code/
├── Work/          # Work related
├── Personal/      # Personal projects
└── Throwaway/     # Temporary tests and experiments

Legacy iTerm2 + Tmux + Vim setup

  1. iTerm2
  2. Monaco Nerd Font
  3. brew install vim (Apple's shipped vim version may not have the termguicolors feature enabled)
  4. git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
  5. git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
  6. ln -s ~/dotfiles/.vimrc ~/dotfiles/.tmux.conf ~
  7. mkdir -p ~/.vim/colors && cp ~/dotfiles/colors/kallgren.vim "$_"
  8. Open and configure iTerm2:
    1. Switch to Monaco Nerd Font installed earlier
    2. Create separate profiles for the dark and light theme and import the iterm2/*.itermcolors files
    3. Add custom keybindings to toggle between the profiles! (Ctrl + Cmd + k/l)
  9. Fire up tmux + vim
  10. Install vim plugins by running :PluginInstall inside vim
  11. Install tmux plugins by pressing prefix (Ctrl + Space), I
  12. Done! ✌️ Switch between the light and dark color themes in vim, tmux and iterm2 at once from within vim with the single key binding ,bg

Keyboard

About

My macOS dotfiles

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published