1. 概要
2022年6月1日、「FreeBSD 13.1 RELEASE」へ設定するにあたって、書き換えます。
2026年6月18日、「FreeBSD 15.1 RELEASE」用に更新します。
2. インストール
「jgmenu」「tint2」「アイコンテーマ」をインストールします。
「root」ユーザ権限で。
pkg install -y jgmenu papirus-icon-theme tint2
3. 自動起動
「tint2」が自動起動するように設定します。
ログインユーザで。
「sddm」をログインマネージャに使用して、「.desktop」ファイルを作成している場合。
「root」ユーザ権限で。
vi /usr/share/skel/dot.xsession
exec fluxbox
と記述している前の行に、下記の行を挿入します。
tint2 &
ログインユーザで。
cp /usr/share/skel/dot.xsession ~/.xsession
「sddm」をログインマネージャに使用して、「.xinitrc」ファイルで「Fluxbox」を起動している場合。
「root」ユーザ権限で。
vi /usr/share/skel/dot.xinitrc
exec fluxbox
と記述している前の行に、下記の行を挿入します。
tint2 &
と記述している行の前に、下記の行を挿入します。
ログインユーザで。
cp /usr/share/skel/dot.xinitrc ~/.xinitrc
「~/.fluxbox/startup」で起動している場合。
vi ~/.fluxbox/startup
exec fluxbox
と記述している行の前に、下記の行を挿入します。
tint2 &
4. tint2 設定
ログインユーザで。
mkdir -pv ~/.config/tint2
cp /usr/local/etc/xdg/tint2/tint2rc ~/.config/tint2/tint2rc
vi ~/.config/tint2/tint2rc
panel_position = bottom center horizontal
panel_layer = top
「Fluxbox」のバーと重なっているので、「tint2」は上へ。
アプリケーションウィンドウをパネルの上へ表示するように。
panel_position = top center horizontal
panel_layer = bottom
taskbar_name_active_background_id = 0
taskbar_name_font_color = #e3e3e3 100
フォントを設定します、上記の行の間に下記の行を追加します。
taskbar_name_font = MigMix 1M 10
launcher_item_app = tint2conf.desktop
launcher_item_app = firefox.desktop
launcher_item_app = iceweasel.desktop
launcher_item_app = chromium-browser.desktop
launcher_item_app = google-chrome.desktop
151~155行をコメントアウトして、下記の行を追加します。
launcher_item_app = jgmenu.desktop
ログインしなおして、反映させます。
5. jgmenu 設定
ログインユーザで。
mkdir -pv ~/.config/jgmenu
cat << 'EOF' >> ~/.config/jgmenu/jgmenurc
menu_margin_x = 10
menu_margin_y = 31
menu_valign = top
item_height = 22
font = MigMix 1M bold 9
icon_theme = Papirus
color_sel_bg = #ffffff 40
csv_name_format = %n
EOF
cat << 'EOF' >> ~/.config/jgmenu/append.csv
^sep()
ログアウト,killall fluxbox,system-log-out
再起動,sudo /sbin/reboot,system-reboot
シャットダウン,sudo /sbin/poweroff,system-shutdown
EOF
上記は、下記を行っています。
・「jgmenu」の基点からの距離をずらす
・表示位置を下から上へ
・項目の幅を狭く
・フォント設定
・アイコンテーマ設定
・選択行の背景にメリハリをつける
・項目名が冗長なので、説明は省略
・終了メニュー追加
再起動、シャットダウンに関しては、「sudo」のインストールと。
visudo
で、下記の記述が必要です。
ユーザ名 ALL=(ALL) NOPASSWD: /sbin/poweroff, /sbin/reboot