JankyBordersでアクティブウインドウの枠線を強調表示する
macOSへJankyBordersをインストールすることにより、アクティブウインドウの枠線(ボーダー)に色を付けたり、太くしたり、強調して表示することができます。
検証環境¶
| 対象 | バージョン |
|---|---|
| macOS | Tahoe 26.3.1 |
インストール¶
Homebrewでインストール可能です。以下を実行することでJankyBordersをインストールできます。
brew tap FelixKratz/formulae
brew install borders
今回はバージョン1.8.4がインストールされました。
% brew info borders
==> felixkratz/formulae/borders ✔: stable 1.8.4, HEAD
A window border system for macOS
https://github.com/FelixKratz/JankyBorders
Installed
/opt/homebrew/Cellar/borders/1.8.4 (9 files, 157.9KB) *
Built from source on 2026-03-03 at 22:27:28
From: https://github.com/FelixKratz/homebrew-formulae/blob/HEAD/borders.rb
License: GPL-3.0-only
==> Options
--HEAD
Install HEAD version
==> Caveats
To start felixkratz/formulae/borders now and restart at login:
brew services start felixkratz/formulae/borders
Or, if you don't want/need a background service you can just run:
LANG="en_US.UTF-8" /opt/homebrew/opt/borders/bin/borders
yabaiと連動させる設定¶
yabaiの設定ファイルに追記することで、yabaiと連携させることができます。JankyBordersのGitHubページでは以下の設定例が紹介されています。JankyBordersのManPageによると、色指定は(RGBではなく)アルファチャネルの透明度を加えたARGBで指定するそうです。
borders active_color=0xffe1e3e4 inactive_color=0xff494d64 width=5.0 &
表示例¶
サンプル1:白/10pt幅¶
白・10pt幅の表示例です。
borders active_color=0xffe1e3e4 inactive_color=0xff494d64 width=10.0 &

サンプル2:緑/6pt幅¶
緑・6pt幅の表示例です。非アクティブ時の色指定は不要そうなので省略しています。
borders active_color=0xcc00ff80 width=6.0 &
