Skip to content

Instantly share code, notes, and snippets.

@yuu
Last active May 7, 2020 02:18
Show Gist options
  • Save yuu/d7381bcfed404c3c34ea566be14c6578 to your computer and use it in GitHub Desktop.
Save yuu/d7381bcfed404c3c34ea566be14c6578 to your computer and use it in GitHub Desktop.
Find defaults key/value in System Preference with macOS Catalina(10.15.4)

デフォルト値を持っているので、初期状態では出てこない。
画面上で on -> off してやると、値がでてくる。
このオプションを例に上げると:

  1. before cmd 2) on -> off 3) aftercmd
    の結果を diff すると分かる。
$ defaults read > before

$ defaults read > after

$ diff before after
>     "com.apple.keyboard.fnState" = 0;

# やるなら こっちが楽か。
$ diff -u before <(defaults read)

off: 0 on: 1 ってのが分かる。

@yuu
Copy link
Author

yuu commented May 7, 2020

Adjust keyboard brightness in low light 出てこない。。。
NSGlobalDomain に無い (NSGlobalDomainを指定しない場合で変わる) どこにあるんだろうって感じ
=> TrackPad の値を見る感じ、domain は指定せず、やったほうが全体出てると思われ。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment