0

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,

但重新启动后没有任何反应。配置文件语法没问题。有什么想法吗?

4

2 回答 2

0

What version of awesome are you using? If you are using awesome version 3.5, you are looking at the wrong page in the wiki. The like you provided is for awesome 3.4x. Try this updated link:http://awesome.naquadah.org/wiki/Quick_launch_bar_widget/3.5

If that doesn't work you, can always use a widget launcher. Here what I have,

firefox_launcher     = awful.widget.launcher({ image = "/home/joshua/.config/awesome/icons/Faenza/apps/48/firefox.png",
                       command = "firefox" })


   right_layout:add(firefox_launcher)
于 2014-05-05T02:34:44.530 回答
0

您可能想再试一次 - 曾有一段时间,发布在 wiki 上的小部件无法正常工作。无论如何,如果仍然出错,请随时给我发邮件。

于 2012-06-18T17:46:38.937 回答