Technical documentation

General notes on how to get up and running with my favourite tools real quick. Also documented here are the common issues that I've faced and their mitigations. Current setup is Thinkpad T440 running Arch and i3

Unresponsive touchpad after resuming from sleep

Create a new file in /lib/systemd/system-sleep/trackpad-restart.sh and add the following to it. Make the file executable. It will run after each resume from suspend.

#!/bin/bash

modprobe -r psmouse
modprobe psmouse

Sound and brightness function keys

Install xbindkeys, create ~/.xbindkeysrc and do a $ xbindkeys -d > ~/.xbindkeysrc. Also put the following four lines in there.

# Increase volume
"pactl set-sink-volume @[email protected] +1000"
   XF86AudioRaiseVolume

# Decrease volume
"pactl set-sink-volume @[email protected] -1000"
   XF86AudioLowerVolume

# Mute volume
"pactl set-sink-mute @[email protected] toggle"
   XF86AudioMute

# Increase backlight
"light -A 2"
   XF86MonBrightnessUp

# Decrease backlight
"light -U 2"
   XF86MonBrightnessDown

Sync all terminal histories together

https://unix.stackexchange.com/questions/1288/preserve-bash-history-in-multiple-terminal-windows

Bash aliases

alias gits="git status"
alias gitch="git checkout"
alias gitco="git commit -m"
alias gita="git add"
alias gitaa="git add ."
alias gitph="git push"
alias gitpl="git pull"
alias gitpho="git push origin"
alias gitplo="git pull origin"
alias gitcp="git cherry-pick"
alias bejs="bundle exec jekyll serve"
alias bex="bundle exec"
alias ls="exa"
alias venv="source ./venv/bin/activate"

Misty touchpad issue arch

Set the following boot parameter: i8042.noloop i8042.nomux i8042.nopnp i8042.reset

Redshift

Install redshift (comes with redshift-gtk). Enable redshift service and add redshift-gtk to ~/.xinitrc before dm startup. ~/.config/systemd/user/default.target.wants/redshift.service file to contain the following.

[Unit]
Description=Redshift display colour temperature adjustment
Documentation=http://jonls.dk/redshift/
After=display-manager.service

[Service]
ExecStart=/usr/bin/redshift -l 52.52:13.37
Environment=DISPLAY=:0
Restart=always

[Install]
WantedBy=default.target

The /etc/geoclue/geoclue.conf file to contain an additional section for redshift.

[redshift]
allowed=true
system=false
users=

KDEConnect

On android just install the app. On desktop, install kdeconnect, and indicator-kdeconnect (aur) package. Add indicator-kdeconnect & to ~/.xinitrc.

Getting wifi to work

Connect to lan and install wpa_supplicant. Use iw to search for wifi and then add in wpa_supplicant config the wifi username and password. This page has everything needed to get up and running with wireless: https://wiki.archlinux.org/index.php/Wireless_network_configuration#WPA2_Personal. Install networkmanager, enable and start networkmanager service. Install nm-applet and add nm-applet & to ~/.xinitrc.

Get git and other autocomplete

Install bash-autocomplete