Skip to content

Latest commit

 

History

History
111 lines (77 loc) · 7.07 KB

README.md

File metadata and controls

111 lines (77 loc) · 7.07 KB
Jason's dotfiles

License GitHub Workflow

This is my collection of dotfiles. As with any open source software never blindly running anything that has not been properly understood and/or vetted. These settings should be considered unstable as I'm constantly tinkering with them. Rather than installing, I recommend forking and modifying it for your own use or using as a resource for your own configurations.

Installation

Requires

Bootstrap

$ curl -s https://raw.githubusercontent.com/jawang35/dotfiles/master/bootstrap.sh | bash

bootstrap.sh script will:

  1. Clone the repository as a Git bare repository into ~/.dotfiles.
  2. Check out configuration files into the $HOME directory.
  3. Install submodule dependencies.
  4. Install Homebrew packages and applications.
  5. Load .bash_profile.

Configurations

Configuration files are managed using a Git bare repository (inspired by https://www.atlassian.com/git/tutorials/dotfiles). config is an alias for git --git-dir=${HOME}/.dotfiles.git --work-tree=${HOME} and is used to manage the repository.

To keep the $HOME directory clean, configurations are stored in .config when possible. Local configurations and secrets are sourced from .local.

To update to latest:

$ config update all

Theme

I use the @sonph's onehalfdark theme with Source Code Pro Nerd Font Mono. My tmux status bar has been inspired by the same theme. 24-bit and 256-color terminal emulators are supported.

Kitty (24-bit colors)

Karabiner-Elements

Custom Karabiner-Elements key bindings configured in .config/karabiner on macOS:

  • Ctrl (or Fn) with h, j, k, l for vi-like arrow movement.
  • Simultaneous j+k to escape. ⇪ Caps Lock bound to Ctrl++ to create a Hyper key for use with Hammerspoon.
  • Ctrl+Delete mimics Fn+Delete (delete forward).
  • Ducky (One 2/Mecha) Mini mappings to match Mac keyboard layout. VID/PID changed to work with macOS (https://twitter.com/i/status/1159519887527727106).

Hammerspoon

Lua scripts for Hammerspoon configuration. .hammerspoon/init.lua is the entrypoint that loads all the other modules.

Hyper key is defined as Ctrl++ and is bound to ⇪ Caps Lock using Karabiner-Elements. Hyper+r reloads the Hammerspoon config.

Applications

The following application shortcuts are used:

Keys Application
Hyper+` Kitty
Hyper+1 Google Chrome

Application Mode

Hyper+a opens the application mode. Esc closes the mode. With the mode open, the following keys launch or switch to the corresponding and close the mode:

Keys Application
Hyper+m Messages
Hyper+o Microsoft Outlook
Hyper+p 1Password
Hyper+s Slack

Window Management

The following window shortcuts are used:

Keys Action
Hyper+f Full Screen
Hyper+c Center
Hyper+h Left Half
Hyper+j Bottom Half
Hyper+k Top Half
Hyper+l Right Half
Hyper++h Left Screen
Hyper++j Lower Screen
Hyper++k Upper Screen
Hyper++l Right Screen

License

Copyright (c) 2016 Jason Wang licensed under the MIT License.