トップ «前の日記(2019/04/08 (月) ) 最新 次の日記(2019/04/10 (水) )» 編集 RSS feed

HsbtDiary


2019/04/09 (火) [長年日記]

春なので Alacritty を使い始めた

Twitter で小池さんが Alacritty がだいぶまともになったというようなことを呟いていたのをみて、春だし手元の環境一新してみようと試してみた。そもそも Terminal.app は設定をポータブルにできないというのも辛かったので、設定が yml になるのは良いことっぽい。

https://github.com/jwilm/alacritty

設定ファイルで変更したのは以下の箇所くらい。

--- .config/alacritty/alacritty.yml.orig        2019-04-09 10:04:02.000000000 +0900
+++ .config/alacritty/alacritty.yml     2019-04-09 10:03:42.000000000 +0900
@@ -18,8 +18,8 @@
   # Specified in number of columns/lines, not pixels.
   # If both are `0`, this setting is ignored.
   dimensions:
-    columns: 0
-    lines: 0
+    columns: 160
+    lines: 80

   # Window position (changes require restart)
   #
@@ -87,42 +87,42 @@
 # Font configuration (changes require restart)
 font:
   # Normal (roman) font face
-  #normal:
+  normal:
     # Font family
     #
     # Default:
     #   - (macOS) Menlo
     #   - (Linux) monospace
     #   - (Windows) Consolas
-    #family: monospace
+    family: Monaco

     # The `style` can be specified to pick a specific face.
     #style: Regular

   # Bold font face
-  #bold:
+  bold:
     # Font family
     #
     # If the bold family is not specified, it will fall back to the
     # value specified for the normal font.
-    #family: monospace
+    family: Monaco

     # The `style` can be specified to pick a specific face.
     #style: Bold

   # Italic font face
-  #italic:
+  italic:
     # Font family
     #
     # If the italic family is not specified, it will fall back to the
     # value specified for the normal font.
-    #family: monospace
+    family: Monaco

     # The `style` can be specified to pick a specific face.
     #style: Italic

   # Point size
-  size: 11.0
+  size: 14.0

   # Offset is the extra space around each character. `offset.y` can be thought of
   # as modifying the line spacing, and `offset.x` as modifying the letter spacing.

Alacritty はタブ表示をサポートしてないのでしょうがなく tmux を引っ張り出してきた。tmux もカスタマイズなどして時間を潰したくないので設定は set-option -g default-shell /usr/local/bin/fish のみ。あとせっかく Alacritty が爆速なのでキーリピートも速くした。

defaults write -g InitialKeyRepeat -int 12
defaults write -g KeyRepeat -int 1

Alacritty 本当に爆速で、今までターミナルでやってたことはなんだったんだ...という感じなんだけどこれは描画だけの話なのか、実際に CPU を通して何かをやってる時間も速くなってる(ボトルネックが減っている)のかどういう感じなんだろうなあ。

進撃の巨人 28 巻を読んだ

ジークって結局何者なのだっけ...がこれまでの話とつながってやっと理解できた。という巻だった。やや最終的な敵に相当する勢力や人物は誰なんだっけ...となってきたのが評価がわかれるところかなあ。政治ショーとしては面白い。


進撃の巨人(28) (週刊少年マガジンコミックス)
諫山創
講談社
¥462