- Homebrew
- Bash
- Vim
- Git
- Drupal
- Tmux
- osx
Download the font
Move fonts to /usr/share/fonts/
Refresh the system font cache with fc-cache, e.g.:
fc-cache -v
Install Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Bash
On different systems you may have a .bash_profile
, .bashrc
and .profile
files. We need to direct configuration to our dotfiles directory. Edit your files to include the following.
.bash_profile
if [ -f ~/.bashrc ];
then
source ~/.bashrc
fi
.bashrc
. ~/bin/dotfiles/bashrc
.profile
. ~/.bashrc
Enabling Italics in Vim and tmux
tic ~/bin/dotfiles/terminfo/xterm-256color-italic.terminfo
tic ~/bin/dotfiles/terminfo/screen-256color-italic.terminfo
tic ~/bin/dotfiles/terminfo/tmux.terminfo
Open iTerm2 and go to Profiles > Terminal and set Report terminal type as xterm-256color-italic
Kill tmux and restart iTerm
Git
Symlink the following files/directories to the dotfiles directory.
ln -s ~/bin/dotfiles/git/.git_template ~/.git_template
ln -s ~/bin/dotfiles/git/.gitconfig ~/.gitconfig
touch ~/.gitconfig_local
ln -s ~/bin/dotfiles/git/.gitignore ~/.gitignore
ln -s ~/bin/dotfiles/git/git-completion.bash ~/git-completion.bash
ln -s ~/bin/dotfiles/git/git-flow-completion.bash ~/git-flow-completion.bash
Vim
Symlink the following files/directories to the dotfiles directory.
ln -s ~/bin/dotfiles/vim/gvimrc ~/.gvimrc
ln -s ~/bin/dotfiles/vim ~/.vim
ln -s ~/bin/dotfiles/vim/vimrc ~/.vimrc
Tmux
Symlink the following files/directories to the dotfiles directory.
ln -s ~/bin/dotfiles/tmux/tmux.conf ~/.tmux.conf
ln -s ~/bin/dotfiles/tmux ~/.tmux
Install Tmux plugin manager (tpm)
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
- If you are in Tmux exit and kill the server.
- Launch Tmux
- Press
prefix + I
(capital i, as in Install) to fetch the plugins. prefix + U
updates plugins
Drupal Console
Symlink the following files/directories to the dotfiles directory.
ln -s ~/bin/dotfiles/drupal_console ~/.console
Node
- Install nvm
- Install node and nvm
PHP
For X there are a few things that must be done.
Load the catppuccin mocha theme.
xrdb -merge ~/.dotfiles/x/xresources
Edit the file /usr/share/X11/xorg.conf.d/40-libinput.conf
Add there Option "NaturalScrolling" "True" like this:
For your mouse:
# Match on all types of devices but joysticks
Section "InputClass"
Identifier "libinput pointer catchall"
MatchIsPointer "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
Option "NaturalScrolling" "True"
EndSection
For your touchpad:
Section "InputClass"
Identifier "libinput touchpad catchall"
MatchIsTouchpad "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
Option "NaturalScrolling" "True"
EndSection
First get a list of the input devices
xinput list
Then output the button map for the device. You can use the name or ID number.
xinput get-button-map 'PIXA3854:00 093A:0274 Touchpad'
or
xinput get-button-map 10
It likely looks like this
1 2 3 4 5 6 7
Middle click is typically 2
change that 1
xinput set-button-map 10 1 1 3 4 5 6 7
xinput set-prop "device name" "ID" 0.45
List the devices with xinput list
to find the device name.
Then find the ID for the Accel Speed setting.
Framework has this:
PIXA3854:00 093A:0274 Touchpad
xinput list-props "PIXA3854:00 093A:0274 Touchpad" | grep "Accel Speed"
libinput Accel Speed (328): 0.000000
libinput Accel Speed Default (329): 0.000000
xinput set-prop "PIXA3854:00 093A:0274 Touchpad" "328" 0.4
Add this line to ~/.xinputrc
to make permanent.
Thinkpad has this:
xinput list-props "Synaptics TM3625-010" | grep "Accel Speed"
libinput Accel Speed (332): 0.450000
libinput Accel Speed Default (333): 0.000000
Gnome settings
gsettings list-recursively org.gnome.desktop.peripherals.touchpad
org.gnome.desktop.peripherals.touchpad accel-profile 'default'
org.gnome.desktop.peripherals.touchpad click-method 'fingers'
org.gnome.desktop.peripherals.touchpad disable-while-typing true
org.gnome.desktop.peripherals.touchpad edge-scrolling-enabled false
org.gnome.desktop.peripherals.touchpad left-handed 'mouse'
org.gnome.desktop.peripherals.touchpad middle-click-emulation false
org.gnome.desktop.peripherals.touchpad natural-scroll true
org.gnome.desktop.peripherals.touchpad send-events 'enabled'
org.gnome.desktop.peripherals.touchpad speed 0.43968871595330739
org.gnome.desktop.peripherals.touchpad tap-and-drag true
org.gnome.desktop.peripherals.touchpad tap-and-drag-lock false
org.gnome.desktop.peripherals.touchpad tap-button-map 'default'
org.gnome.desktop.peripherals.touchpad tap-to-click false
org.gnome.desktop.peripherals.touchpad two-finger-scrolling-enabled true
Save the current configuration.
autorandr --save name
Load thinkpad only display
autorandr think
Load dock profile which disables laptop monitor
autorandr think-dock