1. 概要
以下、「ArcoLinux 22.03.07」での操作です(以前に書いていたものを書き直し、2022年3月29日)。
2023年9月25日、「ArcoLinux 23.09.03」で修正。
2. インストール
「root」ユーザ権限で。
yes | pacman -S tint2 jgmenu
3. tint2 定義
以下、ログインユーザで。
「tint2」は、デフォルトで、自動起動設定されます。
しかし、「ArcoLinux」のものは、意図通りに動作しないので、初期化してやりなおします。
「ArcoLinux 24.07.01」では、この現象は解消しましたので、そのまま、事項の作業ができます。
mv ~/.config/tint2 ~/.config/tint2_
これで、ログインしなおすと、デフォルトの「~/.config/tint2/tint2rc」が作成されているので、これをいちから編集します。
4. tint2 設定
vi ~/.config/tint2/tint2rc
「ArcoLinux 24.07.01」では、元の記述内容が異なっています。
コピーしなおして、編集します。
mv ~/.config/tint2/tint2rc ~/.config/tint2/tint2rc.back
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
「jgmenu」のみでいいので、上記をすべてコメントアウトして下記の1行を追加。
launcher_item_app = jgmenu.desktop
#-------------------------------------
# Clock
time1_format = %H:%M
time2_format = %A %d %B
time1_timezone =
time2_timezone =
日時が見にくいので変更。
#-------------------------------------
# Clock
time1_format = %B %d日 %A %H:%M
time1_font = MigMix 1M bold 9
#time2_format = %A %d %B
time1_timezone =
#time2_timezone =
ログインしなおして、反映します。
5. jgmenu 設定
ログインユーザで。
mkdir -pv ~/.config/jgmenu
sh
cat << 'EOF' >> ~/.config/jgmenu/jgmenurc
menu_margin_x = 10
menu_margin_y = 30
menu_valign = top
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-reboot
シャットダウン,sudo /sbin/poweroff,system-shutdown
EOF
exit
他のプラットフォームでは、アイコンを変えることが多いですが、「ArcoLinux」のアイコンは、ユニークであえて変える要素もないので、そのままにしておきます。
6. jgmenu アイコン
「jgmenu」のアイコンが見えないときは、見えるように別のアイコンを設定します。
「root」ユーザ権限で。
vi /usr/share/applications/jgmenu.desktop
Icon=jgmenu
を下記へ変更します。
Icon=open-menu