Skip to content

erietz/.dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My personal dotfiles managed with GNU stow. Previously I used a Makefile. All dependencies are installed using Ansible in this repo. Since you cannot use ansible on Windows as a host machine, I have opted to keep all Windows "dotfiles" in another repo and resort to ad hoc scripts.

Modifier Keys

Though I would prefer for the key directly to the left of the space bar, call this key X, to be the mod key used for tiling window managers, I have settled on the following set of modifier keys.

Mac (Before) Linux (Before) Mac (After) Linux (After)
CAPS CAPS CTRL CTRL
CTRL CTRL CTRL ALT
OPT SUP OPT SUP
CMD ALT CMD CTRL

This allows consistent use of key X for the following:

Key combo Action
X + c copy
X + x cut
X + v paste
X + w close browser tab
X + q close focused window

given the constraints that

  • On Linux: mod must be mod4 (a.k.a. super ) since alt is used by other programs.
  • On MacOS: mod must be option (a.k.a. alt) since cmd is used all over the OS.

I used to map caps lock to escape for vim but later realize that relearning to use ctrl-[ for escape is far superior. The iPad does not have an escape key for example. Have caps lock as control allows much easier access to ctrl-f, ctrl-b, ctrl-d, ctrl-u, ctrl-o, and ctrl-i in vim as well. Also its way easier to copy and paste into a terminal not having to stretch your pinky so far.

Essential Bindings On Any Window Manager

Key combo Action
mod + 1 Go to workspace 1
mod + 2 Go to workspace 2
mod + 3 Go to workspace 3
mod + 4 Go to workspace 4
mod + 5 Go to workspace 5
mod + 6 Go to workspace 6
mod + 7 Go to workspace 7
mod + 8 Go to workspace 8
mod + 9 Go to workspace 9
mod + Shift + 1 Move focused window to workspace 1
mod + Shift + 2 Move focused window to workspace 2
mod + Shift + 3 Move focused window to workspace 3
mod + Shift + 4 Move focused window to workspace 4
mod + Shift + 5 Move focused window to workspace 5
mod + Shift + 6 Move focused window to workspace 6
mod + Shift + 7 Move focused window to workspace 7
mod + Shift + 8 Move focused window to workspace 8
mod + Shift + 9 Move focused window to workspace 9
mod + t Set layout to tiling
mod + m Set layout to monocle
mod + f Set layout to floating
mod + Enter Open terminal
mod + u Set gaps for ultrawide monitor
mod + Shift + u Unset gaps for ultrawide monitor
mod + p dmenu