Skip to content

jonfk/dotfiles

Repository files navigation

dotfiles

Quick install

# install gnu stow
./init.sh

Dotfiles are installed using stow. stow installs the dotfiles by creating symlinks into the target directory based on the structure in the dotfiles directory.

By default the stow command will create symlinks for files in the parent directory of where you execute the command.

But you can override the default behavior and symlink files to another location with the -t (target) argument flag.

So my dotfiles setup assumes this repo is located in the root of your home directory ~/dotfiles.

Dependencies

Dotfiles

  • gnu stow

Zsh

CLI Utilities

  • fzf
  • fd
  • ripgrep
  • fnm

Tmux

  • Tmux Yank: Plugin to copy to system clipboard

Editors

Rust

Go

  • Download and install Go tar -C /usr/local -xzf go$VERSION.$OS-$ARCH.tar.gz
  • Create Go Path dir: mkdir -p $HOME/Code/go/src
  • Install gocode: go get -u github.com/nsf/gocode
  • Install goimport: go get golang.org/x/tools/cmd/goimports

MacOS Utilities

Other Setup

MacOS

Create custom shortcuts to focus on windows

Original Source

Steps:

  1. Open Automator create a new "Quick Action" (if you're looking at docs that say "Service", this appears to just be a name change around 10.6).
  2. Select "no input" from any application in the new window
  3. From the left-hand side, select run Applescript*1
  4. Type in your Applescript (See below)
  5. Save your automation.
  6. Go to privacy and security and add automator onto the approved accessibility list
  7. Go into keyboard shortcuts and navigate to services, your automator action should be there I believe under general.
  8. Enable the action and select a hotkey.*2

Notes:

  1. Many references I started with set me about converting my Applescript into an application. While I would ideally like to do this, I simply was unable to get it to work this way. If anyone knows how please let me know.
  2. There are very few system-wide keyboard shortcuts that aren't already in use, and there's not really any good feedback to let you know if you're using one that's already in use besides things not really working. I would recommend a shift+option+command modifier plus a key. DO NOT USE THE CONTROL KEY AS A MODIFIER* This is a trap I fell into because it turns out that anytime Applescript is executed with the control key held down, it will automatically show the startup options (which is not what you want for this to work).
on run {input, parameters}
	tell application "Google Chrome" to activate
end run
on run {input, parameters}
	tell application "iTerm" to activate
end run

Allow moving windows while dragging any part of the window

From AeroSpace Readme

defaults write -g NSWindowShouldDragOnGesture -bool true

Now, you can move windows by holding ctrl+cmd and dragging any part of the window (not necessarily the window title)