- 1. 概要
- 2. インストール
- 3. パネル
- 4. jgmenu
1. 概要
以下、「FreeBSD 12.3 RELEASE」でやってみました(2022年1月19日)。
2. インストール
アイコンテーマを同時にインストールします。
「root」ユーザ権限で。
apk add adwaita-fonts jgmenu jgmenu-doc papirus-icon-theme
3. パネル
以下、ログインユーザで。
~/.jwmrc
は、コピー済として。
パネルへ「jgmenu」を組み込みます。
vi ~/.jwmrc
バージョンにより、行番号は、異なることがあります。
<!-- Tray at the bottom. -->
<Tray x="0" y="-1" autohide="off" delay="1000">
<TrayButton label="JWM">root:1</TrayButton>
<Spacer width="2"/>
<TrayButton label="_">showdesktop</TrayButton>
<Spacer width="2"/>
<Pager labeled="true"/>
<TaskList maxwidth="256"/>
<Swallow width="32" height="32" name="xclock">xclock</Swallow>
<Dock/>
<Clock format="%l:%M %p"><Button mask="123">exec:xclock</Button></Clock>
</Tray>
47~50行目を下記のように変更します。
<!-- Tray at the bottom. -->
<Tray x="0" y="-1" autohide="off" height="30" layer="above" halign="left" valign="top">
<TrayButton label="" icon="/usr/share/jwm/jwm.xbm">exec:jgmenu_run</TrayButton>
これで、パネル(トレイ)が、デスクトップの上のほうにいき、スタートの位置で、「jgmenu」が起動します。
4. jgmenu
ログインユーザで。
mkdir -pv ~/.config/jgmenu
sh
cat << 'EOF' >> ~/.config/jgmenu/jgmenurc
item_height = 22
font = MigMix 1M bold 9
icon_theme = Papirus
color_sel_bg = #ffffff 40
csv_name_format = %n
csv_term_char = >
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
上記は、以下を行っています。
・表示位置をずらす
・表示位置を下から上へ
・縦幅を少し狭く
・フォントを設定
・アイコンテーマを設定
・メニューの選択項目をメリハリつける
・項目名が冗長なので、説明は省略
・カテゴリ右の文字が化けるので「>」へ変更
・終了メニューを追加
「再起動」「シャットダウン」には、「sudo」権限が必要になります。
「sudo」の設定に関しては、「メンテナンス・トラブルシュート - コマンド・ユーティリティ - sudo」をご参照ください。
|
|