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


 クラウディア


1. 概要
2. インストール
3. パネル
4. jgmenu

1. 概要

 以下、「FreeBSD 12.3 RELEASE」でやってみました(2022年1月19日)。

2. インストール

 アイコンテーマを同時にインストールします。  「root」ユーザ権限で。

pkg install -y jgmenu papirus-icon-theme

3. パネル

 以下、ログインユーザで。

~/.jwmrc
 がなければ、システムファイルをカスタマイズ用にコピー。

cp /usr/local/etc/system.jwmrc ~/.jwmrc
 パネルへ「jgmenu」を組み込みます。

vi ~/.jwmrc
 「FreeBSD 15.0 RELEASE」のデフォルトの状態の行番号で示しています。  バージョンにより、行番号は、異なることがあります。

    <!-- 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>
 48~51行目を下記のように変更します。

    <!-- Tray at the bottom. -->
    <Tray x="0" y="-1" autohide="off" height="30" layer="above" halign="left" valign="top">

        <TrayButton label="" icon="/usr/local/share/jwm/jwm.xbm">exec:jgmenu_run</TrayButton>
 これで、パネル(トレイ)が、デスクトップの上のほうにいき、スタートの位置で、「jgmenu」が起動します。

4. jgmenu

 ログインユーザで。

mkdir -pv ~/.config/jgmenu

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
EOF

cat << 'EOF' >>  ~/.config/jgmenu/append.csv
^sep()
ログアウト,jwm -exit,system-log-out
再起動,sudo /sbin/reboot,system-reboot
シャットダウン,sudo /sbin/poweroff,system-shutdown
EOF
 上記は、以下を行っています。 ・行間を狭く ・フォントを指定 ・アイコンテーマ設定 ・選択行の背景にメリハリをつける ・項目名にコメントまで表示して、冗長なので、項目名のみに ・終了メニューを追加 (事前に「visudo」で、シャットダウン、再起動をパスワードなしに設定しておく必要があります)

audiobook.jp
AbemaTV 無料体験
JETBOY
健康サポート特集
ベルリッツ
U-NEXT
EMEET 1
ハイスピードプラン
葬送のフリーレン Prime Video
ネットオークションの相場、統計、価格比較といえばオークファン
5G CONNECT
薬屋の独り言
earthcar(アースカー)
それがだいじWi-Fi
アフィリエイトのアクセストレード
EaseUS
サウンドハウス
Amazonギフトカード
TikTok Shop 【リピート用プログラム】
損保との違い
【usus ウズウズ】