![僅在 USB 鍵盤(可能不是筆記型電腦鍵盤)上隨機播放“Alt”/“windows”/“Alt Gr”](https://rvso.com/image/1618748/%E5%83%85%E5%9C%A8%20USB%20%E9%8D%B5%E7%9B%A4%EF%BC%88%E5%8F%AF%E8%83%BD%E4%B8%8D%E6%98%AF%E7%AD%86%E8%A8%98%E5%9E%8B%E9%9B%BB%E8%85%A6%E9%8D%B5%E7%9B%A4%EF%BC%89%E4%B8%8A%E9%9A%A8%E6%A9%9F%E6%92%AD%E6%94%BE%E2%80%9CAlt%E2%80%9D%2F%E2%80%9Cwindows%E2%80%9D%2F%E2%80%9CAlt%20Gr%E2%80%9D.png)
由於不幸的標籤閱讀誤解,我已經訂購併收到了達斯鍵盤4…適用於蘋果機。如果我不使用 KDE Neon 桌面(這是 Ubuntu Bionic 的 KDE 特定品牌),那就太好了。
總而言之,它沒有太大變化,因為佈局是幾乎與我的 ThinkPad 的標準美國佈局相同。然而,有一個微小的區別:他們交換了Alt Gr和 Super 鍵。準確地說,這是彼此相鄰的鍵盤。
紅色箭頭顯示當我點擊 Das 鍵盤上的某些內容時會發生什麼。有幾個問題,但我主要的問題是cmd空白鍵右側有一個鍵,我真的需要那個鍵是我的,Alt Gr因為我使用它很多對於國際角色。
嘗試使用鍵盤後xev
,我收到以下事件:
#############################
#### alt option (left) ####
#############################
KeyPress event, serial 40, synthetic NO, window 0xc400001,
root 0x1a0, subw 0x0, time 360620584, (875,245), root:(2795,282),
state 0x10, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
##################
### cmd (left) ###
##################
KeyPress event, serial 40, synthetic NO, window 0xc400001,
root 0x1a0, subw 0x0, time 360669131, (1346,776), root:(3266,813),
state 0x10, keycode 133 (keysym 0xffeb, Super_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
###################
### cmd (right) ###
###################
KeyPress event, serial 40, synthetic NO, window 0xc400001,
root 0x1a0, subw 0x0, time 360701716, (635,185), root:(2555,222),
state 0x10, keycode 134 (keysym 0xffec, Super_R), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
##########################
### alt option (right) ###
##########################
KeyPress event, serial 42, synthetic NO, window 0xc400001,
root 0x1a0, subw 0x0, time 360746058, (705,144), root:(2625,181),
state 0x10, keycode 108 (keysym 0xfe03, ISO_Level3_Shift), same_screen YES,
XKeysymToKeycode returns keycode: 92
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
到目前為止我一直在研究:
- 建立一個新的鍵盤映射,但這看起來很複雜,因為修飾鍵實際上並不是鍵盤映射本身的一部分
- 我已經跑過
setxkbmap -option altwin:swap_alt_win
,似乎已經更改了鍵,但現在根本xev
沒有鍵起作用Alt Gr
作為獎勵,如果有人能幫助我找到一種將筆記型電腦鍵盤佈局與 USB 鍵盤分開的解決方案,那就太棒了。這是xinput
告訴我的:
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ SynPS/2 Synaptics TouchPad id=11 [slave pointer (2)]
⎜ ↳ TPPS/2 Elan TrackPoint id=12 [slave pointer (2)]
⎜ ↳ Logitech MX Vertical id=16 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Video Bus id=7 [slave keyboard (3)]
↳ Sleep Button id=8 [slave keyboard (3)]
↳ Integrated Camera: Integrated C id=9 [slave keyboard (3)]
↳ AT Translated Set 2 keyboard id=10 [slave keyboard (3)]
↳ ThinkPad Extra Buttons id=13 [slave keyboard (3)]
↳ Metadot - Das Keyboard Das Keyboard id=14 [slave keyboard (3)]
↳ Metadot - Das Keyboard Das Keyboard id=15 [slave keyboard (3)]
↳ Logitech MX Vertical id=17 [slave keyboard (3)]
非常歡迎任何有關調整的幫助!