These are my linux/macOS configuration files. They’re tracked in a git repository separate from the working tree, which is just my home directory; this replaces an ongoing symlink song and dance for a little upfront setup effort. Given that the upfront work can be copy-pasted, it’s a pretty great tradeoff.
To get up and running:
- clone the dotfiles repo
- copy the files over to their proper locations, and
- configure the dotfile git repo to ignore all untracked files
The last step is so neither I nor you ever accidentally push our whole home directory to github, lol. So:
git clone --separate-git-dir=$HOME/.dots git@github.com:ambirdsall/dots.git tmpdotfiles
rsync --recursive \
--verbose \
--exclude '.git' \
--backup --suffix=.dots.orig \
tmpdotfiles/ $HOME/
rm -r tmpdotfiles
git --git-dir=$HOME/.dots/ --work-tree=$HOME config --local status.showUntrackedFiles noIf you’ve already installed emacs, you can now run
make installfollowed by whichever of the following is appropriate
make linux
make macosNow, aspirationally:
dots doctorOnce you have a clean bill of health, tangle all literate configs with
dots tangleThe ~/bin/dots file provides a dots command to handle all interaction with the git repo. It wraps
git, passing the correct directories to --git-dir and --work-tree and paving a few common paths:
dots- defaults to
git status -swhen called with no arguments dots c some commit message- expands to
dots commit -m "some commit message"
cf.
doom help +org tanglemacbook pro 12,1 + xfce :: fixing scroll directions
I had to add this to /usr/share/X11/xorg.conf.d/40-libinput.conf, with separate edits needed for the Section
entries for pointer and touchpad, e.g.:
Section "InputClass"
Identifier "libinput touchpad catchall"
MatchIsPointer "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
# 👋👇 yes hello this is new
Option "NaturalScrolling" "true"After doing so, I also had to set the scrolling direction inside xfce4-settings-manager >
Mouse and Touchpad separately for each mouse/touchpad device; then log out and back into
XFCE. Only then could I override the default scrolling direction (which was the wrong
one).