kepford / dotfiles

Be very careful. You are looking inside the mind of mad man.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

.Dot files

Features

  • Homebrew
  • Bash
  • Vim
  • Git
  • Drupal
  • Tmux
  • osx

Installation

Fonts

FiraCodeNerdFont

Download the font

Move fonts to /usr/share/fonts/

Refresh the system font cache with fc-cache, e.g.:

fc-cache -v

Homebrew

Install Homebrew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Symlinks and home directory

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

PHP

Install Composer

Linux

X

For X there are a few things that must be done.

Load Theme

Load the catppuccin mocha theme. xrdb -merge ~/.dotfiles/x/xresources

Natural Scrolling and faster response

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

Disable middle click

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

source

Set acceleration speed for track pad

xinput set-prop "device name" "ID" 0.45

Source

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

i3 Monitor Setup

Using autorandr

Save the current configuration.

autorandr --save name

Load thinkpad only display

autorandr think

Load dock profile which disables laptop monitor

autorandr think-dock

About

Be very careful. You are looking inside the mind of mad man.


Languages

Language:Vim Script 42.7%Language:Shell 41.3%Language:Lua 11.0%Language:Vim Snippet 2.2%Language:PHP 1.8%Language:CSS 0.6%Language:Python 0.4%