Xquartz

man Xquartz
有很多 com.apple.x11 相關的參數可以設定
可以在執行 Xquartz 時指定參數
也可以用 defaults 來 read/write 參數

defaults write com.apple.x11 enable_fake_buttons -boolean true
defaults write com.apple.x11 fake_button2 modifiers
(modifiers: Shift, Option, Control, Command, Fn)
defaults write com.apple.x11 fake_button3 modifiers
defaults write com.apple.x11 swap_alt_meta -boolean true
defaults write com.apple.x11 keymap_file filename
defaults write com.apple.x11 no_quit_alert -boolean true
defaults write com.apple.x11 no_auth -boolean true
defaults write com.apple.x11 nolisten_tcp -boolean true
defaults write com.apple.x11 xinit_kills_server -boolean false
defaults write com.apple.x11 fullscreen_hotkeys -boolean false
defaults write com.apple.x11 enable_system_beep -boolean false
defaults write com.apple.x11 enable_key_equivalents -boolean false
defaults write com.apple.x11 depth depth

順便記錄一下我調整過後的 com.apple.x11 設定:

[candyz@ibook:~] defaults read com.apple.x11
{
    "NSWindow Frame x11_prefs" = "314 316 478 338 0 0 1024 746 ";
    "apps_menu" = (
        (gmrxvt, "/usr/local/bin/gmrxvt", j),
        (gurxvt, "/usr/local/bin/gurxvt", u)
    );
    depth = -1;
    "done_xinit_check" = 1;
    "enable_fake_buttons" = 1;
    "enable_key_equivalents" = 1;
    "enable_system_beep" = 1;
    "keymap_file" = "/etc/X11/xinit/.Xmodmap";
    "no_auth" = 1;
    "no_quit_alert" = 1;
    "nolisten_tcp" = 1;
    rootless = 1;
    "sync_keymap" = 1;
}

Comments are closed.

FireStats icon Powered by FireStats