2006年6月21日水曜日

ctwmの挙動

当方のctwmの設定では、カーソルがどこにあろうともCtrlキー+矢印キーで仮想画面を移動するように設定している(*1)。
またCapsLockキーは要らないのでXの設定でCtrlに変更している(*2)。

OSを入れ直したところ、以下の挙動で良くわからない。
1.元々Ctrlなキーと矢印キーの組合せは仮想画面を移動する。
2.CapsLockキーと矢印キーの組合せだとカーソルがROOTウィンンドウの上にある時だけ仮想画面を移動する。ターミナル上やブラウザの上では普通のCtrlキーの挙動を示す。





3.xevで調べた。
元々左Ctrlキー
KeyPress event, serial 30, synthetic NO, window 0x1a00001,
root 0x3b, subw 0x0, time 2085940, (69,0), root:(666,175),
state 0x0, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 30, synthetic NO, window 0x1a00001,
root 0x3b, subw 0x0, time 2086821, (69,0), root:(666,175),
state 0x4, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 bytes:
元々右Ctrlキー
KeyPress event, serial 30, synthetic NO, window 0x1a00001,
root 0x3b, subw 0x0, time 2165698, (66,0), root:(663,175),
state 0x0, keycode 109 (keysym 0xffe4, Control_R), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 30, synthetic NO, window 0x1a00001,
root 0x3b, subw 0x0, time 2166408, (66,0), root:(663,175),
state 0x4, keycode 109 (keysym 0xffe4, Control_R), same_screen YES,
XLookupString gives 0 bytes:
元々CapsLockキー
KeyPress event, serial 30, synthetic NO, window 0x1a00001,
root 0x3b, subw 0x0, time 2245799, (50,0), root:(647,175),
state 0x0, keycode 66 (keysym 0xffe3, Control_L), same_screen YES,
XKeysymToKeycode returns keycode: 37
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 30, synthetic NO, window 0x1a00001,
root 0x3b, subw 0x0, time 2246357, (50,0), root:(647,175),
state 0x6, keycode 66 (keysym 0xffe3, Control_L), same_screen YES,
XKeysymToKeycode returns keycode: 37
XLookupString gives 0 bytes:
前はちゃんと動いたのにな。Xの設定でCapsとCtrlの入れ換えにすればCapsLockキーでもちゃんと常に仮想画面を移動するのだが、間違ってCapsを叩くと苛つくので....
*1
"Left" = c : all : f.leftworkspace
"Right" = c : all : f.rightworkspace
"Up" = c : all : f.upworkspace
"Down" = c : all : f.downworkspace
*2:
Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"
Option "AutoRepeat" "500 30"
# Option "XkbOptions" "ctrl:swapcaps"
Option "XkbOptions" "ctrl:nocaps"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc106"
Option "XkbLayout" "jp"
EndSection

0 件のコメント:

コメントを投稿