1. 概要
「ArcoLinux 22.03.07」で、「jgmenu」を使用してみます。
2. インストール
アイコンテーマとして、「papirus-icon-theme」をシステムインストール時にインストールできるのですが、「ArcoLinux」オリジナルのアイコンを使うことにします。
(「ArcoLinux」のアイコンテーマは、好みではありませんが、独自性があるので尊重します)
「root」ユーザ権限で。
yes | pacman -S jgmenu tint2
3. tint2 設定
「tint2」は、一度起動しないと、コンフィグレーションファイルが作成されませんので、ログインユーザで端末を開いて
tint2
Ctrl+C で閉じれば、コンフィグレーションファイルは、作成されています。
「tint2」の設定をカスタマイズします。
vi ~/.config/tint2/tint2rc
(行番号は、2022年4月5日時点のものです)
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
デフォルトで、上に表示しているバーを下へ移動します。
vi ~/.config/qtile/config.py
行番号は、「ArcoLinux 22.03.07」のものです。
バージョンが異なると、行番号が変わったりしますが、「init_screens」で検索すれば、探せると思います。
def init_screens():
return [Screen(top=bar.Bar(widgets=init_widgets_screen1(), size=26, opacity=0.8)),
Screen(top=bar.Bar(widgets=init_widgets_screen2(), size=26, opacity=0.8))]
475、476行の「top」を「bottom」へ変更します。
「tint2」の自動起動を設定します。
sh
cat << 'EOF' >> ~/.config/qtile/scripts/autostart.sh
run tint2 &
EOF
exit
ログインしなおせば、設定が反映されているはずです。
4. 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 qtile,system-log-out
再起動,sudo /sbin/reboot,system-reboot
シャットダウン,sudo /sbin/poweroff,system-shutdown
EOF
exit
再起動とシャットダウンを有効化するには、「root」ユーザ権限で
visudo
して、下記の行を加えます。
ログインユーザ名 ALL=(ALL) NOPASSWD: /sbin/halt, /sbin/reboot, /sbin/poweroff
「jgmenu」のアイコンが見えないので、見えるように別のアイコンを設定します。
「root」ユーザ権限で。
vi /usr/share/applications/jgmenu.desktop
Icon=jgmenu
を下記へ変更します。
Icon=open-menu