1. 概要
「tint2」と「jgmenu」を使うことにします。
以下、「Mageia 8 Openbox」の操作です。
2. インストール
「root」ユーザ権限で。
dnf install -y tint2 jgmenu
3. 自動起動
自動起動を設定します。
ログインユーザで。
cp /etc/xdg/openbox/autostart ~/.config/openbox/autostart
cat << 'EOF' >> ~/.config/openbox/autostart
tint2 &
EOF
4. tint2 設定
これを行う前に、インストール後、一度、ログインしなおしておく必要があります。
そうでないと、下記のファイルが作成されないからです。
ログインユーザで。
mkdir -pv ~/.config/tint2
cp /etc/xdg/tint2/tint2rc ~/.config/tint2/tint2rc
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
「tint2」の設定プログラムは必要ないので、「jgmenu」に置き換え、以降の4行はコメントアウトします。
launcher_item_app = jgmenu.desktop
5. jgmenu 設定
ログインユーザで。
mkdir -pv ~/.config/jgmenu
cat << 'EOF' >> ~/.config/jgmenu/jgmenurc
item_height = 22
font = MigMix 1M bold 9
color_sel_bg = #ffffff 40
csv_name_format = %n
EOF
cat << 'EOF' >> ~/.config/jgmenu/append.csv
^sep()
ログアウト,pkill openbox,system-log-out
再起動,/sbin/reboot,system-reboot
シャットダウン,/sbin/poweroff,system-shutdown
EOF
上記は、以下を行っています。
・幅を狭く
・フォント設定
・選択行の背景にメリハリをつける
・項目名が冗長なので、説明を削除
・終了メニューの追加