mac から VNC で接続した時のキーコンフィグ
mac の画面共有(macOS 標準の VNC クライアント)を使用して Raspberry Pi に接続しています。この時、mac のキーボードの割り当てを変更するにはどうしたら良いでしょうか?
下記のように変更したいです。
Command_L -> Control_L
Command_R -> Shift_R
何もしていない状態では下記のような挙動になっていました。
Command_L 単押し: Romaji
Command_L+その他のキー(または長押し): Alt_L
Command_R 単押し: Hiragana
Command_R+その他のキー(または長押し): Alt_L
Raspberry Pi に Bluetooth 接続している Apple Wireless Keyboard は /usr/share/X11/xkb/symbols/pc 内の下記3行を編集することで目的を達成できました。
同じことを VNC クライアントのキーボードでも実現したいです。
RealVNC Viewer を試したところ、Command キーに Control を割り当てることはできませんでした。
構成:
Raspberry Pi 4 Model B Raspbian GNU/Linux 10 (buster)
Macbook Pro Late 2013 US Keyboard macOS Catalina
よろしくお願いします。
下記のように変更したいです。
Command_L -> Control_L
Command_R -> Shift_R
何もしていない状態では下記のような挙動になっていました。
Command_L 単押し: Romaji
Command_L+その他のキー(または長押し): Alt_L
Command_R 単押し: Hiragana
Command_R+その他のキー(または長押し): Alt_L
Raspberry Pi に Bluetooth 接続している Apple Wireless Keyboard は /usr/share/X11/xkb/symbols/pc 内の下記3行を編集することで目的を達成できました。
Code: Select all
# 変更前:
key <LWIN> { [ Super_L ] }
# 変更後:
key <LWIN> { [ Control_L ] }
# 変更前:
key <RWIN> { [ Super_R ] }
# 変更後:
key <RWIN> { [ Shift_R ] }
# 変更前:
modifier_map_Control{ Control_L, Control_R };
# 変更後:
modifier_map_Control{ Control_L, Control_R, <LWIN> };
RealVNC Viewer を試したところ、Command キーに Control を割り当てることはできませんでした。
構成:
Raspberry Pi 4 Model B Raspbian GNU/Linux 10 (buster)
Macbook Pro Late 2013 US Keyboard macOS Catalina
よろしくお願いします。
Jump to
- Community
- General discussion
- Announcements
- Other languages
- Deutsch
- Español
- Français
- Italiano
- Nederlands
- 日本語
- Polski
- Português
- Русский
- Türkçe
- User groups and events
- Raspberry Pi Official Magazine
- Using the Raspberry Pi
- Beginners
- Troubleshooting
- Advanced users
- Assistive technology and accessibility
- Education
- Picademy
- Teaching and learning resources
- Staffroom, classroom and projects
- Astro Pi
- Mathematica
- High Altitude Balloon
- Weather station
- Programming
- C/C++
- Java
- Python
- Scratch
- Other programming languages
- Windows 10 for IoT
- Wolfram Language
- Bare metal, Assembly language
- Graphics programming
- OpenGLES
- OpenVG
- OpenMAX
- General programming discussion
- Projects
- Networking and servers
- Automation, sensing and robotics
- Graphics, sound and multimedia
- Other projects
- Gaming
- Media centres
- AIY Projects
- Hardware and peripherals
- Camera board
- Compute Module
- Official Display
- HATs and other add-ons
- Device Tree
- Interfacing (DSI, CSI, I2C, etc.)
- Keyboard computers (400, 500, 500+)
- Raspberry Pi Pico
- General
- SDK
- MicroPython
- Other RP2040 boards
- Zephyr
- Rust
- AI Accelerator
- AI Camera - IMX500
- Hailo
- Software
- Raspberry Pi OS
- Raspberry Pi Connect
- Raspberry Pi Desktop for PC and Mac
- Beta testing
- Other
- Android
- Debian
- FreeBSD
- Gentoo
- Linux Kernel
- NetBSD
- openSUSE
- Plan 9
- Puppy
- Arch
- Pidora / Fedora
- RISCOS
- Ubuntu
- Ye Olde Pi Shoppe
- For sale
- Wanted
- Off topic
- Off topic discussion