Setup

環境構築

awesome

$ sudo pacman -S xorg-server xorg-xinit xf86-video-intel
$ sudo -S awesome vicious
$ echo "exec awesome" >> ~/.xinitrc

設定ファイル

$ mkdir -p ~/.config/awesome/
$ cp /etc/xdg/awesome/rc.lua ~/.config/awesome/

CapsLockをCtrlにする

vi ./Xmodmap
remove Lock = Caps_Lock
keysym Caps_Lock = Control_L
add Control = Control_L

起動時に自動読み込みするために~/.xinitrcに追記

echo ~/.xinitrc >> xmodmap ~/.Xmodmap

ThinkpadのTrackpointの設定

vi /etc/X11/xorg.conf.d/20-thinkpad.conf
Section "InputClass"
    Identifier  "Trackpoint Wheel Emulation"
    MatchProduct        "TPPS/2 IBM TrackPoint|DualPoint Stick|Synaptics Inc. Composite TouchPad / TrackPoint|ThinkPad USB Keyboard with TrackPoint|USB Trackpoint pointing device"
    MatchDevicePath     "/dev/input/event*"
    Option              "EmulateWheel"          "true"
    Option              "EmulateWheelButton"    "2"
    Option              "Emulate3Buttons"       "false"
    Option              "XAxisMapping"          "6 7"
    Option              "YAxisMapping"          "4 5"
EndSection

日本語環境

フォント

$ pacman -S otf-ipafont

fcitx-mozc

$ pacman -S fcitx-im fcitx-configtool fcitx-mozc

~/.xprofileを編集

vi ~/.xprofile
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS="@im=fcitx"