JWM - 共通事項 - メニュー - jgmenu ArcoLinux

クラウディア 
1. 概要
2. インストール
3. トレイ 設定
4. jgmenu 設定

1. 概要

 以下、「ArcoLinux 23.09.03 JWM」での操作です。

2. インストール

 「root」ユーザ権限で。

yes | pacman -S jgmenu

3. トレイ 設定

 ログインユーザで。  パネルへの組み込み。

vi ~/.config/jwm/tray

<?xml version="1.0"?>
<JWM>
     <!-- Tray at the bottom. -->
    <Tray x="0" y="-1" autohide="off" height="30" layer="above" halign="left" valign="bottom">
        <TrayButton icon="/usr/share/icons/hicolor/20x20/places/start-here-arcolinux.svg">root:3</TrayButton>
        <Spacer width="2"/>
        <TrayButton label="_">showdesktop</TrayButton>
        <Spacer width="2"/>
        <Pager labeled="true"/>
        <TaskList maxwidth="150"/>
        <Dock/>
        <Clock format="%H:%M"><Button mask="123">exec:xclock</Button></Clock>
    </Tray>
</JWM>
 4~5行目を下記変更します。

    <Tray x="0" y="-1" autohide="off" height="30" layer="above" halign="left" valign="top">
        <TrayButton icon="/usr/share/icons/hicolor/20x20/places/start-here-arcolinux.svg">exec:jgmenu_run</TrayButton>
 ログインしなおせば、「Xdgmenu」の代わりに「jgmenu」を使用することができます。  「ArcoLinux 22.03.07」では、「jgmenu」のアイコンを使用すると何故か起動できなくなったので、下記のように記述しました。

        <TrayButton label="" icon="/usr/share/icons/hicolor/20x20/places/start-here-arcolinux.svg">exec:jgmenu_run</TrayButton>

4. jgmenu 設定

 ログインユーザで。

mkdir -pv ~/.config/jgmenu

sh
cat << 'EOF' >>  ~/.config/jgmenu/jgmenurc
menu_margin_x = 10
menu_margin_y = 40
menu_valign = top
item_height = 22
font = Noto Sans CJK JP bold 9
color_sel_bg = #ffffff 40
csv_name_format = %n
EOF

cat << 'EOF' >>  ~/.config/jgmenu/append.csv
^sep()
ログアウト,jwm -exit,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
earthcar(アースカー)