Skip to content

Latest commit

 

History

History
104 lines (72 loc) · 5.9 KB

README.md

File metadata and controls

104 lines (72 loc) · 5.9 KB
Jason's dotfiles

GitHub Actions Dependabot

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 update to latest:

$ config pull && config checkout && config submodule update --init --recursive

Theme

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

Kitty (24-bit colors)

Hammerspoon

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

hyper key is defined as ctrl+option+cmd and is bound to capslock using Karabiner-Elements. hyper+r reloads the Hammerspoon config.

Applications

The following application shortcuts are used:

Key Application
hyper+` Kitty
hyper+1 Google Chrome

Application Mode

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

Key Application
hyper+m Messages
hyper+o Microsoft Outlook
hyper+p 1Password
hyper+s Slack

Windows

The following window shortcuts are used:

Key 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+shift+h Left Screen
hyper+shift+j Lower Screen
hyper+shift+k Upper Screen
hyper+shift+l Right Screen

License

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