Skip to content

MartinLwx/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Motivations

Your dotfiles will most likely be the longest project you ever worked on.

Managing dotfiles without a version control system is a chore. That's why I created this GitHub repo :)

Structure of my dotfiles

.
├── flake.lock
├── flake.nix
├── lib                 # utils for Nix
├── hosts               # hosts (aka. machines) configurations
├── users               # user-level configurations
├── hammerspoon         # hammerspoon configurations
├── kitty               # keymapping configurations
├── nvim                # neovim configurations
├── README.md
└── windows-only        # Windows configurations

What is inside?

Kitty

My Personal Kitty Configurations

Hammerspoon

I use Hammerspoon to manage windows. The available key mappings are:

  • Full screen - ⌘ Command + ⌥ Option + f
  • Center - ⌘ Command + ⌥ Option + c
  • Left half - ⌘ Command + ⌥ Option +
  • Right half - ⌘ Command + ⌥ Option +
  • Top half - ⌘ Command + ⌥ Option +
  • Bottom half - ⌘ Command + ⌥ Option +
  • Top left - ⌘ Command + ⌥ Option + ⌃ Control + u
  • Top right - ⌘ Command + ⌥ Option + ⌃ Control + i
  • Bottom left - ⌘ Command + ⌥ Option + ⌃ Control + j
  • Bottom right - ⌘ Command + ⌥ Option + ⌃ Control + k
  • Hold to quit any app - ⌘ Command + q

Neovim

My Go-to text editor with the following plugins:

Windows-only

I use Mac for personal business but use a Windows PC at work, so I wrote the keymappings.ahk to map keys between Mac and Windows to keep a consistent muscle memory. To use this .ahk script, you need to install the AutoHotKey tool and run keymappings.ahk as administrator. Besides that, you should install a third-party Chinese IME and delete the built-in Microsoft Pinyin IME if you are also a Chinese user because there is an unfixed issue.

nix-darwin

I have been gradually migrating to Nix flakes because I really appreciate the reproducibility they offer. My Nix configuration structure is largely inspired by mitchellh'nixos-config.

Appendix

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published