「tint2」の設定。
vi ~/.config/tint2/mechanical-horizontal.artistic.tint2rc
button_lclick_command = ~/.config/rofi/scripts/rofi-main.sh
button_rclick_command = ~/.config/rofi/scripts/rofi-exts.sh
上記で、「rofi」をメニューで表示しているので、「jgmenu」へ変更します。
button_lclick_command = /usr/bin/jgmenu_run
ログインしなおして、反映します。
4. CachyOS 251129 tint2 設定
「CachyOS 250824 Openbox」では、「tint2」は、自動起動も含め、何の設定もありませんでした。
なので、他の多くのプラットフォームと同様、自動起動を設定するところから。
「tint2」の自動起動を設定します。
ログインユーザで。
mkdir -pv ~/.config/openbox
sh
cat << 'EOF' >> ~/.config/openbox/autostart
tint2 &
EOF
exit
「tint2」の設定。
mkdir -pv ~/.config/tint2
cp /etc/xdg/tint2/tint2rc ~/.config/tint2/.
vi ~/.config/tint2/tint2rc
panel_position = bottom center horizontal
panel_layer = top
パネルの位置を下から上へ。
アプリケーションウィンドウが、パネルの下へ隠れるので、パネルのレイヤを下へ。
panel_position = top center horizontal
panel_layer = bottom
taskbar_name_active_background_id = 0
taskbar_name_font_color = #e3e3e3 100
102行と103行の間に下記を追加して、フォントを定義。
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
すべてコメントアウトして、下記の1行を追加。
launcher_item_app = jgmenu.desktop
ログインしなおして、反映します。
5. jgmenu 設定
ログインユーザで。
mkdir -pv ~/.config/jgmenu
sh
cat << 'EOF' >> ~/.config/jgmenu/jgmenurc
menu_margin_x = 10
menu_margin_y = 45
menu_valign = top
item_height = 22
font = MigMix 1M bold 9
color_sel_bg = #ffffff 50
csv_name_format = %n
EOF
cat << 'EOF' >> ~/.config/jgmenu/append.csv
^sep()
ログアウト,pkill openbox,system-log-out
再起動,reboot,system-reboot
シャットダウン,poweroff,system-shutdown
EOF
exit
上記で行っているのは、「jgmenu」に。
・端からの縦横の距離を設定
・左上に表示
・項目間の幅を狭く
・フォント
・選択項目の背景にメリハリ
・項目名の冗長を抑止
・終了メニューを設定
という設定を行っています。
終了メニューで、シャットダウン等を有効にするには、「visudo」で、ログインユーザにシャットダウン等の実行をパスワードなしでできるように設定します。