Skip to content

Instantly share code, notes, and snippets.

View guanghwang's full-sized avatar
🎯
Focusing

gh guanghwang

🎯
Focusing
View GitHub Profile
@guanghwang
guanghwang / synctex vim qpdfview
Created January 25, 2019 02:53 — forked from j-jith/synctex vim qpdfview
synctex vim qpdfview
# qpdfview synctex vim synchronization
# for qpdfview (Settings > Behavior > Source editor)
vim --servername vimtex --remote-silent +%2<Enter>zz %1
# for alias in .bashrc
alias vimtex='vim --servername vimtex'
@guanghwang
guanghwang / 81-thinkpad-dock.rules
Created May 2, 2018 20:53 — forked from seanf/81-thinkpad-dock.rules
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"