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?

【herdr】デフォルト設定から自分好みにカスタマイズする

0
Posted at

はじめに

話題のherdrを取り入れてみました。
マウスライクで操作しやすく、デフォルト設定のままでも非常に使いやすいです。
そのままでも十分ですが、自分好みにカスタマイズできるようなので、方法をまとめてみました。

前提

  • OS:macOS
  • herdrがインストール済み

カスタマイズ方法

1. 設定ファイルを作成する

$ herdr --default-config > ~/.config/herdr/config.toml

全オプションがコメント付きで並んだ状態から始められるので、何が設定できるのか把握しやすいです。

2. 必要な項目を編集する

config.tomlを編集するか、herdr起動中に prefix(デフォルトはctrl + b) + s で設定メニューから変更することもできます。

プレフィックスを変更する

config.toml
[keys]
# Prefix key to enter prefix mode (default: "ctrl+b")
# Examples: "ctrl+b", "f12", "esc", "-"
# Action bindings use explicit syntax: "prefix+n" requires the prefix;
# "ctrl+alt+n" is a direct terminal-mode shortcut.
# Accepted key syntax: plain keys, ctrl/shift/alt/cmd/super modifiers, and special keys like enter/tab/esc/left/right/up/down.
# Named punctuation such as minus, comma, ampersand, plus, and backtick is also accepted.
# Most reliable direct bindings are ctrl+letter, function keys, and explicit modified chords.
# alt+..., cmd/super, and punctuation-with-modifiers may depend on your terminal/tmux setup.
- # prefix = "ctrl+b"
+ prefix = "ctrl+a"

配色テーマを変更する

config.toml
[theme]
# Built-in themes: catppuccin, terminal, tokyo-night, dracula, nord,
#                  gruvbox, one-dark, solarized, kanagawa, rose-pine,
#                  vesper
- # name = "catppuccin"
+ name = "terminal"

herdrを起動中はprefix + sで選択できます。

image.png

テーマは以下のように複数用意されているので、お好みのものを選べました。

tokyo-night, catppuccin, terminal, dracula, nord, etc.

3. 設定をリロード

$ herdr server reload-config

もしくは、herdr起動中にprefix + Shift + R でもリロードできます。

おわりに

私の環境ではデフォルトテーマの場合、サイドパネルの文字が少し見づらかったです。
当初サイドパネルの文字色のみを設定できないか探しましたが、色の指定はテーマ単位のみ設定できるようでした。

customテーマとして色を自分で定義することはできるものの、既存テーマの一部だけを上書きしたい場合には少し物足りないかもしれません。
テーマが多く選択できるので、見やすいテーマを探すほうが早いと思います。

tmuxで複数のエージェントを並列に走らせている記事などを見てすごいなと思っていましたが、herdrなら自分でも同じことができそうです!

参考資料

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?