1. 概要
2023年10月12日、「SpiralLinux 12.231001 Openbox」の記述で、本メモを更新しました。
「SpiralLinux 11.220925 Openxbox」では、リポジトリに「tint2」「papirus-icon-theme」は存在するものの、「jgmenu」は、存在しません。
いささか、厄介です。
「git」から、「jgmenu」のソースを持ってきて、インストールします(「MX Linux 21.1」と同じ)。
「SpiralLinux 12.231001 Openbox」では、リポジトリに、「jgmenu」が存在するので楽ちんです。
2. インストール
「root」ユーザ権限で。
「SpiralLinux 12.231001 Openbox」では、 「jgmenu」「papirus-icon-theme」「tint2」、すべてリポジトリに存在するので、一発でインストールできます。
apt install -y jgmenu papirus-icon-theme tint2
「SpiralLinux 11.220925 Openxbox」では、リポジトリに「jgmenu」が存在しません。
「tint2」「papirus-icon-theme」の他、「jgmenu」の作成に必要なものをインストールします。
apt install -y papirus-icon-theme tint2 git libxml2-dev libx11-dev libxrandr-dev libcairo2-dev libpango1.0-dev librsvg2-dev libmenu-cache-dev
「github」からソースの取得。
ログインユーザで。
cd /tmp
git clone https://github.com/johanmalm/jgmenu.git
「make」してインストール。
cd /tmp/jgmenu
./configure --prefix=/usr
sudo make install
3. tint2 設定
「tint2」の自動起動を設定します。
ログインユーザで。
mkdir -pv ~/.config/openbox
sh
cat << 'EOF' >> ~/.config/openbox/autostart
tint2 &
EOF
exit
一度「tint2」を起動しない「tint2」のコンフィグレーションファイルが作成されません。
エラーが出たりするかもしれませんが、コマンドで、一度、「tint2」をぶったたいておきます。
「tint2」のコンフィグレーションファイルが作成されたら、編集します。
vi ~/.config/tint2/tint2rc
panel_position = bottom center horizontal
panel_layer = top
パネルを上へ、アプリケーション起動時は、アプリケーションを優先に。
panel_position = top center horizontal
panel_layer = bottom
taskbar_name_font_color = #e3e3e3 100
フォント設定。
上記の行の後ろに。
taskbar_name_font = MigMix 1M 12px
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
ログインしなおせば、設定が反映されているはずです。
4. jgmenu 設定
「papirus-icon-theme」をインストールしたものの、デフォルトのアイコンがユニークなので、そのまま使用します。
以下、ログインユーザで。
mkdir -pv ~/.config/jgmenu
sh
cat << 'EOF' >> ~/.config/jgmenu/jgmenurc
menu_margin_x = 10
menu_margin_y = 40
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
再起動,sudo /sbin/reboot,system-restart-panel
シャットダウン,sudo /sbin/poweroff,system-shutdown
EOF
exit