Advertisement
opexxx

osx.sh

Jul 8th, 2014
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 5.85 KB | None | 0 0
  1. # フルキーボードアクセスを有効にする (Tabですべてのコントロールにフォーカスできるようになる)
  2. defaults write -g AppleKeyboardUIMode -int 3
  3.  
  4. # Dock {{{
  5. # Dockを自動的に隠す
  6. defaults write com.apple.dock autohide -bool true
  7.  
  8. # Dockをすぐに表示する
  9. defaults write com.apple.dock autohide-delay -float 0
  10.  
  11. # Minimize animation
  12. defaults write com.apple.dock mineffect scale
  13.  
  14. # アプリケーションアイコンにしまう
  15. defaults write com.apple.dock minimize-to-application -bool true
  16.  
  17. # 最小化されたアプリケーションのアイコンは透過させる
  18. defaults write com.apple.dock showhidden -bool true
  19.  
  20. # Dockを2D表示に
  21. defaults write com.apple.dock no-glass -bool true
  22.  
  23. # Dockを拡大する
  24. defaults write com.apple.dock magnification -bool true
  25.  
  26. # スタックをハイライト表示する
  27. defaults write com.apple.dock mouse-over-hilite-stack -bool true
  28.  
  29. # 実行中のアプリケーションにインジケータを表示しないように
  30. defaults write com.apple.dock show-process-indicator -bool false
  31.  
  32. # Dashboard をスペースとして表示しない
  33. defaults write com.apple.dock dashboard-in-overlay -bool true
  34.  
  35. # テキパキ Expose
  36. defaults write com.apple.dock expose-animation-duration -float 0.1
  37.  
  38. # disable dashboard
  39. defaults write com.apple.dashboard mcx-disabled -bool true
  40. # }}}
  41.  
  42. # Time Machine {{{
  43. defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool true
  44. hash tmutil &>/dev/null && sudo tmutil disablelocal # Time Machine のローカルスナップショットを切る
  45. # }}}
  46.  
  47. # Appearance {{{
  48. defaults write -g AppleAquaColorVariant -int 6 # Graphite
  49. # defaults write -g AppleHighlightColor # Highlight color
  50.  
  51. # メニューバーを透過させないように
  52. defaults write -g AppleEnableMenuBarTransparency -bool false
  53.  
  54. # スクロールバーはデバイスに応じて自動的に
  55. defaults write -g AppleShowScrollBars -string 'Automatic'
  56. # }}}
  57.  
  58. # Fn キーを本来の動作にする
  59. defaults write -g com.apple.keyboard.fnState -bool true
  60.  
  61. # Finder {{{
  62. # 拡張子を常に表示する
  63. defaults write -g AppleShowAllExtensions -bool true
  64.  
  65. # 検索するときは現在のディレクトリ以下から
  66. defaults write com.apple.finder FXDefaultSearchScope -string 'SCcf'
  67.  
  68. # フォルダの中身を QuickLook
  69. defaults write com.apple.finder QLEnableXRayFolders -bool true
  70.  
  71. # Disable animations
  72. defaults write com.apple.finder DisableAllAnimations -bool true
  73.  
  74. # 不可視ファイルも表示する
  75. defaults write com.apple.finder AppleShowAllFiles -bool true
  76.  
  77. # 便利バーは全部表示する
  78. defaults write com.apple.finder ShowStatusBar -bool true
  79. defaults write com.apple.finder ShowPathbar -bool true
  80.  
  81. # リスト表示
  82. defaults write com.apple.finder FXPreferredViewStyle -string "Nslv"
  83.  
  84. # ファイルに保存ダイアログは常に展開
  85. defaults write -g NSNavPanelExpandedStateForSaveMode -bool true
  86.  
  87. # インターネットからダウンロードしたアプリケーションに実行ダイアログを表示しない
  88. defaults write com.apple.LaunchServices LSQuarantine -bool false
  89.  
  90. # 拡張子変更にうるさくいわれない
  91. defaults write com.apple.finder FXEnableExtensionChangeWarning -bool true
  92. # }}}
  93.  
  94. # 自動スペル訂正いらない
  95. defaults write -g NSAutomaticSpellingCorrectionEnabled -bool false
  96.  
  97. # ディスクイメージの検証をスキップ
  98. defaults write com.apple.frameworks.diskimages skip-verify -bool true
  99. defaults write com.apple.frameworks.diskimages skip-verify-locked -bool true
  100. defaults write com.apple.frameworks.diskimages skip-verify-remote -bool true
  101.  
  102. # .DS_Storeをつくるな
  103. defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
  104.  
  105. # Security {{{
  106. # Screen Saver {{{
  107. # パスワードをすぐに求める
  108. defaults write com.apple.screensaver askForPassword -int 1
  109. defaults write com.apple.screensaver askForPasswordDelay -int 0
  110. # }}}
  111. # }}}
  112.  
  113. # Trackpad {{{
  114. # タップでクリック
  115. defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -bool true
  116.  
  117. # ドラッグロック
  118. defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad DragLock -bool true
  119. # }}}
  120.  
  121. # ウィンドウ状態の保存をしない
  122. defaults write -g NSQuitAlwaysKeepsWindows -bool false
  123.  
  124. # ポインタを最大に
  125. defaults write com.apple.universalaccess mouseDriverCursorSize -int 4
  126.  
  127. # Activity Monitor.app {{{
  128. # Dockのアイコンをメモリ使用量に
  129. defaults write com.apple.ActivityMonitor IconType -int 4
  130. # }}}
  131.  
  132. # App Store {{{
  133. defaults write com.apple.appstore ShowDebugMenu -bool true
  134. # }}}
  135.  
  136. # 縮小するときのアニメーション
  137. # http://www.defaults-write.com/increase-the-speed-of-os-x-dialogs-boxes/#.UfSW3GSsgy4
  138. defaults write -g NSWindowResizeTime -float 0.001
  139.  
  140. # Save to disk (not to iCloud)
  141. defaults write -g NSDocumentSaveNewDocumentsToCloud -bool false
  142.  
  143. # Alfred.app {{{
  144. # ステータスバーのアイコンを隠す
  145. defaults write com.alfredapp.Alfred appearance.hideStatusBarIcon -bool true
  146.  
  147. # 歯車アイコンを隠す
  148. defaults write com.alfredapp.Alfred appearance.hidePreferencesCogIcon -bool true
  149.  
  150. # 帽子アイコンを隠す
  151. defaults write com.alfredapp.Alfred appearance.hideHat -bool true
  152.  
  153. # enable eject command
  154. defaults write com.alfredapp.Alfred system.eject -bool true
  155. # }}}
  156.  
  157. # Divvy.app {{{
  158. # ショートカットキーを押すたび複数ディスプレイ間を移動する
  159. defaults write com.mizage.divvy useMonitorCycling -bool true
  160.  
  161. # 10 x 10
  162. defaults write com.mizage.divvy defaultColumnCount -int 10
  163. defaults write com.mizage.divvy defaultRowCount -int 10
  164. # }}}
  165.  
  166. # Disable standby mode
  167. sudo pmset -a standbydelay 86400 # 24 hours
  168.  
  169. for app in Alfred Divvy Finder Dock SystemUIServer; do killall $app >/dev/null 2>&1; done
  170.  
  171. # vim:set foldmethod=marker:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement