> 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-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;
}
```
