0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【Mac】コマンドでダークモードか確認する方法

Last updated at Posted at 2025-01-25

以下のコマンドを実行するとダークモードになっている場合には"Dark"が返却され、それ以外の場合にはエラーとなります。

defaults read -g AppleInterfaceStyle

ダークモードの場合

$ defaults read -g AppleInterfaceStyle
Dark

ダークモードでない場合

$ defaults read -g AppleInterfaceStyle
2025-01-25 10:21:27.778 defaults[14319:355652]
The domain/default pair of (kCFPreferencesAnyApplication, AppleInterfaceStyle) does not exist
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?