- 1. 概要
- 2. インストール
- 3. tint2 設定
- 4. jgmenu 設定
1. 概要
「EndeavourOS」でも使ってみます。
「tint2」を合わせて使います。
2. インストール
「root」ユーザ権限で。
yes | pacman -S tint2 jgmenu papirus-icon-theme
3. tint2 設定
「tint2」の自動起動を設定します。
ログインユーザで。
mkdir -pv ~/.config/openbox
sh
cat << 'EOF' >> ~/.config/openbox/autostart
tint2 &
EOF
exit
「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' \
"/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
sh
cat << 'EOF' >> ~/.config/jgmenu/jgmenurc
item_height = 22
font = MigMix 1M bold 9
icon_theme = Papirus
color_sel_bg = #ffffff 50
csv_name_format = %n
EOF
cat << 'EOF' >> ~/.config/jgmenu/append.csv
^sep()
ログアウト,pkill openbox,system-log-out
再起動,reboot,system-reboot
シャットダウン,poweroff,system-shutdown
EOF
exit
上記で行っているのは、「jgmenu」に。
・項目間の幅を狭く
・フォント設定
・アイコン設定
・選択項目の背景にメリハリ
・項目名の冗長を抑止
・終了メニューを設定
という設定を行っています。
終了メニューで、シャットダウン等を有効にするには、「visudo」で、ログインユーザにシャットダウン等の実行をパスワードなしでできるように設定します。
|
|