UNIX/設定、設定ファイル/.Xmodmap


Table of Contents

% xmodmap -pke | less 
略
keycode 34 = z Z
略
keycode 45 = 4 dollar
略

% xmodmap -e 'keycode 34 = s S' 
% xmodmap -e 'keysym z Z = s S' 
keycode 34 = s S 
% xmodmap ~/.Xmodmap
! comment

!
! Swap Ctrl and Caps_Lock
!
remove Lock = Caps_Lock
remove Control = Control_L
keysym Control_L = Caps_Lock
keysym Caps_Lock = Control_L
add Lock = Caps_Lock
add Control = Control_L
% xmodmap .Xmodmap

!
! Change Caps_Lock to Ctrl
!
remove Lock = Caps_Lock
!remove Control = Control_L
!keysym Control_L = Caps_Lock
keysym Caps_Lock = Control_L
!add Lock = Caps_Lock
add Control = Control_L


xrea