キーボードレイアウトの変更

キーボードレイアウトの変更

さて、キーボードを実行するhp pavillion g6があります。こんな感じ、私は2つのシフトを破り、左のCtrlキーとCaps Lockを使用しました...まあ、整理しようとしています...

私は通常オンラインで怒っていないので、Ctrlキーに興味はありません。もう1つはまだ動作しているか、Caps Lockです。 ShiftキーをAltの横の右側にあるPrintキーに再マップしたい(表示されている場合)。

誰かがxmodmapができると言いましたが、使用するのが少し複雑で交換したいキーのコードを見つけることができず、ソフトウェアがコンピュータの起動時間を30秒ほど遅らせると言いました。もちろん、開始時間を遅らせずにできない場合は、別の解決策が必要です。

私も試しました自動キーしかし、それは少し役に立ちません。つまり、すべてのキーをマップすることはできず、私が使用するキーをマップしないことを意味します。印刷キーなどの役に立たないキーは機能しないようです。とにかく次にエクスポートします。私はgithubで自由な時間に取り組んでいます。現在実行可能なものが必要です。

ベストアンサー1

xmodmap はいあなたが望むツール。いいえ、速度はまったく遅くなりません。

man xmodmap説明する:

   clear MODIFIERNAME
           This removes all entries in the modifier map for  the
           given  modifier,  where  valid name are: Shift, Lock,
           Control, Mod1, Mod2, Mod3, Mod4, and Mod5 (case  does
           not matter in modifier names, although it does matter
           for all other names).  For  example,  ``clear  Lock''
           will remove all any keys that were bound to the shift
           lock modifier.

   add MODIFIERNAME = KEYSYMNAME ...
           This adds all keys containing the  given  keysyms  to
           the  indicated  modifier  map.   The keysym names are
           evaluated after all input  expressions  are  read  to
           make  it  easy to write expressions to swap keys (see
           the EXAMPLES section).

必要なキーシム名を見つけるにはxev

以下を実行すれば十分です。

xmodmap -e 'add Shift = Print'

(「print」キーは「prt sc」と表示されているキーですが、これxevを知らせます。)

おすすめ記事