Openbox - 共通事項 - メニュー - gmenu OpenMandriva


 クラウディア


1. 概要
2. インストール
3. tint2 設定
4. jgmenu 設定

1. 概要

 以下、「OpenMandriva 5.0」での操作です。  この時点で、「OpenMandriva」のリポジトリがなかったので、「jgmenu」は、「github」からダウンロードして、「make」します。

2. インストール

 「root」ユーザ権限で。  「tint2」「papirus-icon-theme」の他、「jgmenu」の作成に必要なものをインストールします。

dnf install -y gcc glibc-devel make papirus-icon-theme tint2 git libxml2-devel libx11-devel libxrandr-devel libcairo2 libpango1.0-devel libpangocairo1.0-devel librsvg2-devel
 「cc」のシンボリックリンクを作成します。

ln -s `which gcc` /usr/bin/cc
 「github」からソースの取得。  ログインユーザで。

cd /tmp
git clone https://github.com/johanmalm/jgmenu.git
 「make」してインストール。

cd /tmp/jgmenu
./configure --prefix=/usr
sudo make install

3. tint2 設定

 以下、ログインユーザで。  自動起動を設定。

mkdir -pv ~/.config/openbox

sh
cat << 'EOF' >> ~/.config/openbox/autostart

/usr/bin/tint2 &
EOF
exit
 「tint2」の設定を行う前に、インストール後、一度、起動しておく必要があります。  そうでないと、「tint2」のコンフィグレーションファイルが作成されないからです。

tint2
 エラーが出ても気にしません。  「OpenMandriva 5.0」で作成される、コンフィグレーションファイルは、何故か  (これ、「Fedora」でも同じことが起きたな、なんだろう?)

~/.config/tint2/t/nt2rc
 という気持ち悪いものだったので、下記を実行しました。

cp ~/.config/tint2/t/nt2rc ~/.config/tint2/tint2rc
 「tint2」のコンフィグレーションファイルが作成された時点で

vi ~/.config/tint2/tint2rc

panel_position = bottom center horizontal
panel_layer = top
 下に表示しているものを上に、ウィンドウが、パネルの下に隠れちゃうのでパネルのレイヤを下に。

panel_position = top center horizontal
panel_layer = bottom

taskbar_name_active_background_id = 0
taskbar_name_font_color = #e3e3e3 100
 102、103行の間に下記の行を追加(パネルのフォントを設定)。

taskbar_name_font = MigMix 1M 10

launcher_item_app = tint2conf.desktop
launcher_item_app = firefox.desktop
launcher_item_app = iceweasel.desktop
launcher_item_app = chromium-browser.desktop
launcher_item_app = google-chrome.desktop
 すべて、コメントアウトして、下記の行を追加。

launcher_item_app = jgmenu.desktop
 ログインしなおして、設定を反映します。

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
EOF

cat << 'EOF' >> ~/.config/jgmenu/append.csv
^sep()
ログアウト,pkill openbox,system-log-out
再起動,/sbin/reboot,system-reboot
シャットダウン,/sbin/poweroff,system-shutdown
EOF
exit

audiobook.jp
AbemaTV 無料体験