Remapping special/function keys on new keyboard layout

Remapping special/function keys on new keyboard layout

現在、ラップトップに Ubuntu 22.04 をセットアップしており、ラップトップを 2 台目のモニターに接続して 2 台目のキーボードを使用することもあります。2 台目のキーボードでは特定のキーが再マップされているため、使用中のキーボードに基づいてキーボード レイアウトをシームレスに変更できるようにしたいと考えています。キーボードを簡単に切り替えるための最良の方法はsuper+spaceキーストロークであると考えていますが、2 台目のキーボード レイアウトを実際に取得する方法がわかりません。

I would basically like to remap my special keys, i.e. my function keys. On my laptop, the volume up and volume down keys are under f2 and f3, but on my second keyboard, they're under f11 and f12. I saw other questions asked and answered that say to go into settings and remap the keys from there, but that would be relatively hard to change on the fly, and I think having two separate custom keyboard layouts would be better. I just don't know how to easily set up a second custom keyboard layout based on QWERTY US English layout.

Thanks!

関連情報