dotfiles

Personal dotfiles
git clone https://git.bracken.jp/dotfiles.git
Log | Files | Refs | LICENSE

.xinitrc (546B)


      1 #!/bin/sh
      2 
      3 # Use ibus for Japanese IME.
      4 export GTK_IM_MODULE=fcitx
      5 export QT_IM_MODULE=fcitx
      6 export XMODIFIERS=@im=fcitx
      7 
      8 # Assign the right AltGr key to keycode 108 (compose).
      9 xmodmap -e "keycode 108 = Multi_key Alt_R Meta_R Alt_R Meta_R"
     10 
     11 # Use inverted "natural" scrolling (swap mouse buttons 4 and 5).
     12 xmodmap -e "pointer = 1 2 3 5 4 6 7 8 9 10 11 12"
     13 
     14 # Turn caps lock into control.
     15 xmodmap -e "clear lock"
     16 xmodmap -e "clear control"
     17 xmodmap -e "keycode 66 = Control_L"
     18 xmodmap -e "add control = Control_L Control_R"
     19 
     20 exec /usr/local/bin/i3