Skip to content

Instantly share code, notes, and snippets.

" GVim on Windows (CHUWI MiniBook)
" Since 2019/11/23
" 不可能なサイズにすると、真ん中に大きなサイズで置かれる?
set columns=120
set lines=40
" メニューバーを非表示
set guioptions-=m
@yamao2253
yamao2253 / fonts.conf
Created July 28, 2020 01:35
~/.config/fontconfig/fonts.conf
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<!-- Default serif fonts -->
<match target="pattern">
<test qual="any" name="family"><string>serif</string></test>
<edit name="family" mode="prepend" binding="same"><string>TakaoPMincho</string> </edit>
</match>
<!-- Default sans fonts -->
<match target="pattern">
Section "InputClass"
Identifier "ELECOM Bluetooth TrackBall M-MT2BR"
MatchProduct "ELECOM TrackBall Mouse"
Driver "libinput"
MatchDevicePath "/dev/input/event*"
Option "ScrollMethod" "button"
Option "ScrollButton" "3"
Option "NaturalScrolling" "true"
@yamao2253
yamao2253 / config.txt.hdmi_480x320
Created January 11, 2019 22:38
Raspberry Pi /boot/config.txt for HDMI 480x320
# 3.5inch HDMI 480x320
hdmi_group=2
hdmi_mode=87 # Custom mode
hdmi_cvt=480 320 60 6 0 0 0
framebuffer_width=480
framebuffer_height=320
@yamao2253
yamao2253 / config.txt.hdmi_800x480
Last active January 26, 2019 01:13
Raspberry Pi /boot/config.txt for HDMI 800x480
# 5inch HDMI 800x480
# sudo cat config.txt.hdmi_800x480 | sudo tee -a /boot/config.txt
hdmi_group=2
hdmi_mode=87 # Custom mode
hdmi_cvt=800 480 60 6 0 0 0
framebuffer_width=800
framebuffer_height=480
! Update
! xrdb -merge $HOME/.Xresources
URxvt.geometry: 96x32
URxvt.font: xft:Ricty-10
URxvt.letterSpace: -1
URxvt.cursorBlink: true
URxvt.scrollBar: false
! Molokai theme
@yamao2253
yamao2253 / vimium-options.json
Created December 29, 2018 23:34
Vimium option json
{
"settingsVersion": "1.64.3",
"exclusionRules": [
{
"pattern": "https?://mail.google.com/*",
"passKeys": ""
},
{
"pattern": "https?://feedly.com/*",
"passKeys": "?"
@yamao2253
yamao2253 / 30-kensington.conf
Last active March 20, 2024 20:42
Kensington Slimblade Trackball configulation for /etc/X11/xorg.conf.d
Section "InputClass"
Identifier "Kensington Slimblade Trackball"
MatchUSBID "047d:2041"
Driver "libinput"
MatchDevicePath "/dev/input/event*"
Option "ScrollMethod" "button"
Option "ScrollButton" "3"
Option "NaturalScrolling" "true"
@yamao2253
yamao2253 / 30-kensington.conf
Created December 29, 2018 05:18
Kensington Slimblade Trackball configulation for xorg
Section "InputClass"
Identifier "Kensington Slimblade Trackball"
MatchUSBID "047d:2041"
Driver "libinput"
MatchDevicePath "/dev/input/event*"
Option "ScrollMethod" "button"
Option "ScrollButton" "3"
Option "NaturalScrolling" "true"
Option "HorizontalScrolling" "false"
@yamao2253
yamao2253 / 30-kensington.conf
Created December 29, 2018 05:18
Kensington Slimblade Trackball configulation for xorg
Section "InputClass"
Identifier "Kensington Slimblade Trackball"
MatchUSBID "047d:2041"
Driver "libinput"
MatchDevicePath "/dev/input/event*"
Option "ScrollMethod" "button"
Option "ScrollButton" "3"
Option "NaturalScrolling" "true"
Option "HorizontalScrolling" "false"