- 1. 概要
- 2. インストール
- 3. 起動設定
- 4. jgmenu 設定
1. 概要
以下、2023年10月5日。
「ArcoLinux 23.09.03」の操作で大きく、更新しました。
2. インストール
「root」ユーザ権限で。
yes | pacman -S jgmenu
3. 起動設定
「dwm」が表示しているバーを下へ移動します。
vi ~/.config/arco-dwm/config.h
static const int topbar = 1; /* 0 means bottom bar */
を下に書き換えて。
static const int topbar = 0; /* 0 means bottom bar */
デスクトップ上をクリックして、「jgmenu」を表示するようにします。
static const char *jgmenu[] = { "jgmenu_run", NULL };
下に、「jgmenu」を定義します。
static const char *taskmanager[] = { "xfce4-taskmanager", NULL };
static const char *jgmenu[] = { "jgmenu_run", NULL };
/* button definitions */
/* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
static Button buttons[] = {
/* click event mask button function argument */
{ ClkLtSymbol, 0, Button1, setlayout, {0} },
{ ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} },
{ ClkWinTitle, 0, Button2, zoom, {0} },
{ ClkStatusText, 0, Button1, spawn, {.v = taskmanager } },
{ ClkStatusText, 0, Button2, spawn, {.v = filecmd } },
{ ClkStatusText, 0, Button3, spawn, {.v = calendar } },
{ ClkClientWin, MODKEY, Button1, movemouse, {0} },
{ ClkClientWin, MODKEY, Button2, togglefloating, {0} },
{ ClkClientWin, MODKEY, Button3, resizemouse, {0} },
{ ClkTagBar, 0, Button1, view, {0} },
{ ClkTagBar, 0, Button3, toggleview, {0} },
{ ClkTagBar, MODKEY, Button1, tag, {0} },
{ ClkTagBar, MODKEY, Button3, toggletag, {0} },
};
191、192行の間に、以下の行をいれます。
{ ClkRootWin, 0, Button1, spawn, {.v = jgmenu } },
編集後。
cd ~/.config/arco-dwm
sudo make install
ログインしなおせば、設定が反映されているはずです。
4. jgmenu 設定
ログインユーザで。
mkdir -pv ~/.config/jgmenu
sh
cat << 'EOF' >> ~/.config/jgmenu/jgmenurc
menu_margin_x = 10
menu_margin_y = 33
menu_valign = top
item_height = 20
font = Noto Sans CJK JP bold 9
color_sel_bg = #ffffff 40
csv_name_format = %n
EOF
sh
cat << 'EOF' >> ~/.config/jgmenu/append.csv
^sep()
ログアウト,pkill dwm, system-log-out
再起動,sudo /sbin/reboot,system-reboot
シャットダウン,sudo /sbin/poweroff,system-shutdown
EOF
exit
「再起動」「シャットダウン」は、「sodu」のインストールと、「visudo」で下記の1行を追加することが必要です。
ユーザ名 ALL=(ALL) NOPASSWD: /sbin/reboot, /sbin/poweroff
|