Skip to content

Instantly share code, notes, and snippets.

@seanf
seanf / 81-thinkpad-dock.rules
Last active November 3, 2025 10:13
Example ThinkPad docking script for multi-monitor
# Save this file (after modifying ID_VENDOR and ID_MODEL if necessary) as /etc/udev/rules.d/81-thinkpad-dock.rules
# These values seem to work for "ThinkPad Mini Dock Plus Series 3"
SUBSYSTEM=="usb", ACTION=="add|remove", ENV{ID_VENDOR}=="17ef", ENV{ID_MODEL}=="100a", RUN+="/etc/sbin/thinkpad-dock.sh"
! emulate XTerm for proper recognition of key combinations in Vim
!URxvt.keysym.Up : \033[A !breaks arrow keys in Vim
!URxvt.keysym.Down : \033[B !breaks arrow keys in Vim
!URxvt.keysym.Right : \033[C !breaks arrow keys in Vim
!URxvt.keysym.Left : \033[D !breaks arrow keys in Vim
!URxvt.keysym.Page_Up : \033[5~ !breaks scrolling in Rxvt
!URxvt.keysym.Page_Down : \033[6~ !breaks scrolling in Rxvt
!URxvt.keysym.Home : \033[H !breaks navigation in Vim
!URxvt.keysym.End : \033[F !breaks navigation in Vim
URxvt.keysym.S-Up : \033[1;2A
@andreyvit
andreyvit / tmux.md
Created June 13, 2012 03:41
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: