# 6.9.实用工具

一款有用的 Wayland 工具是 waybar，所有合成器都可以使用它。虽然 Wayfire 自带了启动菜单，但易于使用且快速的任务栏是所有合成器或桌面管理器的好配件。waybar 是一款与 Wayland 兼容的任务栏，快速且易于配置。要安装这个软件包以及一款支持的音频控制工具，可以执行以下命令：

```sh
# pkg install pavucontrol waybar
```

要创建配置目录并复制默认的配置文件，可以执行以下命令：

```sh
% mkdir ~/.config/waybar
% cp /usr/local/etc/xdg/waybar/config ~/.config/waybar
```

`lavalauncher` 工具提供了一个启动条，用于启动各种应用程序。该软件包没有提供示例配置文件，因此需要执行以下操作：

```sh
mkdir ~/.config/lavalauncher
```

以下是一个示例配置文件，它仅包含 Firefox，并将其放置在右侧：

```ini
global-settings {
	watch-config-file = true;
}

bar {
	output            = eDP-1;
	position          = bottom;
	background-colour = "#202020";

	# 默认配置集的条件。
	condition-resolution = wider-than-high;

	config {
		position = right;
	}

	button {
		image-path          =     /usr/local/lib/firefox/browser/chrome/icons/default/default48.png;
		command[mouse-left] =     /usr/local/bin/firefox;
	}
	button {
	  image-path           =   /usr/local/share/pixmaps/thunderbird.png;
	  command[mouse-left]  =   /usr/local/bin/thunderbird;
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://handbook.bsdcn.org/di-6-zhang-freebsd-zhong-de-wayland/6.9.-shi-yong-gong-ju.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
