i3statusのフォントサイズを変更

最近ウィンドウマネージャにi3 wmを使っています.以前使っていた環境は14インチで解像度は1600×900,現在は12インチで1920×1200で画面サイズは小さくなったけどドット数は増えています.
この状態だとi3のステータスを表示しているi3statusの文字がぱっと見読めません.目を凝らせば読めるけど大変.
ということで文字を大きくする方法を調べました.

公式ドキュメントのFontの項目のExampleにそのものがありました.

5.10. Font
Specifies the font to be used in the bar. See [fonts].

Syntax:

font <font>

Example:

bar {
    font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
    font pango:DejaVu Sans Mono 10
}

DejaVu font は好きではないので規定値のmonospaceでサイズだけ大きくしてみます.

~/.config/i3/config
 # finds out, if available)
 bar {
         status_command i3status
+        font pango:monospace 16
 }

既定値は上の方にあった font pango:monospace 8 だと思います.
この状態で Mod+Shift+r で再読込して反映されました.

環境
$ dpkg-query -W i3 i3status
i3      4.22-2
i3status        2.14-2
$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 12 (bookworm)
Release:        12
Codename:       bookworm
$ arch
x86_64

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

To respond on your own website, enter the URL of your response which should contain a link to this post's permalink URL. Your response will then appear (possibly after moderation) on this page. Want to update or remove your response? Update or delete your post and re-enter your post's URL again. (Find out more about Webmentions.)