Skip to content

X(旧Twitter)をmacOSのXDeckで閲覧する

macOSでXを閲覧する際、XDeck (GitHub) が便利だったのでメモしておきます。

以下は公式サイトに掲載されていた画像を拝借したものです。

image

インストール

Homebrewでインストールできます。

brew install --cask xdeck

ウインドウ幅を変更しても、カラム幅が追従しない

X(旧Twitter)クライアントは選択肢が少なく、そういった意味では便利です。ただ、ウインドウ幅を広げても各カラムの横幅が追従せず、空白ができてしまいます。この点は不自由に感じました。

image

設定ファイル

XDeckの設定ファイルは以下にありました。

  1. ~/Library/Containers/me.morishin.XDeck/Data/.config/XDeck/schema.json
  2. ~/Library/Containers/me.morishin.XDeck/Data/.config/XDeck/settings.json

columnWidthintegerのようで、例えば「auto」などは指定できないように見えました。

1
2
3
    "columnWidth": {
      "type": "integer"
    },

参考

デフォルトのschema.json

schema.json
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "$schema": {
      "type": "string"
    },
    "columnWidth": {
      "type": "integer"
    },
    "columns": {
      "type": "array",
      "items": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": ["forYou", "following", "notifications", "profile"]
              }
            },
            "required": ["type"],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": ["custom"]
              },
              "url": {
                "type": "string"
              }
            },
            "required": ["type", "url"],
            "additionalProperties": false
          }
        ]
      }
    }
  },
  "required": ["columns"],
  "additionalProperties": false
}

デフォルトのsettings.json

settings.json
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
{
  "$schema": "./schema.json",
  "columnWidth": 450,
  "columns": [
    {
      "type": "forYou"
    },
    {
      "type": "following"
    },
    {
      "type": "notifications"
    },
    {
      "type": "profile"
    }
  ]
}