- 1. 概要
- 2. インストール
- 3. tint2 設定
- 4. jgmenu 設定
1. 概要
この手の、レア(「rare」まれな、の方でなく、なまの方)なデスクトップでは、「jgmenu」を使うようにしています。
2. インストール
「root」ユーザ権限で。
pkg install -y jgmenu papirus-icon-theme tint2
3. tint2 設定
自動起動のスクリプトを作成しているものとして、ログインユーザで。
cat << 'EOF' >> ~/.xprofile
tint2 &
EOF
「tint2」の設定。
mkdir -pv ~/.config/tint2
sed -e 's/panel_position = bottom center horizontal/panel_position = top center horizontal/' \
-e 's/panel_layer = top/panel_layer = bottom/' \
-e '/taskbar_name_font_color/i\
taskbar_name_font = MigMix 1M 10' \
-e '/launcher_item_app = /d' \
"/usr/local/etc/xdg/tint2/tint2rc" > ~/.config/tint2/tint2rc
sed -i '' '/startup_notifications = 1/a\
launcher_item_app = jgmenu.desktop' ~/.config/tint2/tint2rc
上記は、下記の設定を行っています。
・パネルの位置を下から上へ。
・アプリケーションウィンドウが、パネルの下へ隠れるので、パネルのレイヤを下へ。
・フォントを定義。
・ランチャで起動するのは、「jgmenu」のみ
ログインしなおして、反映します。
4. jgmenu 設定
ログインユーザで。
mkdir -pv ~/.config/jgmenu
cat << 'EOF' >> ~/.config/jgmenu/jgmenurc
menu_margin_x = 10
menu_margin_y = 30
menu_valign = top
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()
ログアウト,kill `pgrep -a cwm`,system-log-out
再起動,sudo /sbin/reboot,system-reboot
シャットダウン,sudo /sbin/poweroff,system-shutdown
EOF
上記は、下記の設定を行っています。
・表示位置をずらす
・表示位置を下から上へ
・項目の幅を狭く
・フォント設定
・アイコンテーマ設定
・選択行の背景にメリハリをつける
・項目名が冗長なので、説明を省略
・終了メニューを追加
再起動とシャットダウンを有効化するには、「root」ユーザ権限で
visudo
して、下記の行を加えます。
ログインユーザ名 ALL=(ALL) NOPASSWD: /sbin/halt, /sbin/reboot, /sbin/poweroff
|