> For the complete documentation index, see [llms.txt](https://handbook.bsdcn.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://handbook.bsdcn.org/di-6-zhang-freebsd-zhong-de-wayland/6.9.-shi-yong-gong-ju.md).

# 6.9.实用工具

waybar 是一款对所有 Wayland 合成器都很有用的任务栏。虽然 Wayfire 自带启动菜单，但一个简洁快速的任务栏仍是很好的补充。waybar 配置简单、运行高效。要安装 waybar 以及配套的音频控制工具，请执行以下命令：

```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 for the default configuration set.
	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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.
