从wiki中,我只更改了/home/quanta/.config/awesome/launchbar/
包含一个包含内容的测试文件的快捷方式文件夹:
[Desktop Entry]
Name=Firefox
Exec=firefox
Icon=/usr/share/icons/hicolor/24x24/apps/firefox.png
Position=1
这个小部件通过 2 种方式添加到 wibox:
mywibox[s].widgets = {
--memwidget,
--cpuwidget,
{
mylauncher,
mytaglist[s],
mypromptbox[s],
layout = awful.widget.layout.horizontal.leftright
},
mylayoutbox[s],
volume_widget,
mytextclock,
s == 1 and mysystray or nil,
mytasklist[s],
launchbar,
layout = awful.widget.layout.horizontal.rightleft
}
或者:
s == 1 and launchbar or nil,
但重新启动后没有任何反应。配置文件语法没问题。有什么想法吗?