跳转至内容

nwg-shell

来自 ArchWiki

nwg-shell 项目旨在为 Sway Wayland 合成器创建一个一致的、基于 GTK 的用户界面。

自 0.5.0 版本起,它也支持 Hyprland [1]

注意 Hyprland 支持是 shell 的一个附加功能,而不是一个独立的功能。

安装

nwg-shell 组件可以通过 nwg-shell (meta) 包进行 安装

  • Hyprland 支持需要一些额外的软件包。请查看 nwg-shell 包的可选依赖项列表。
  • nwg-shell 的大多数组件也可以单独安装和使用。有关组件的完整列表,请参阅 #Shell 组件

nwg-shell-installer 脚本(参见 #Configuration)还期望在运行 **之前** 安装 网页浏览器文件管理器文本编辑器,以便正确设置快捷键。建议使用的有 firefoxthunartypobuster,但也可以安装其他工具。

配置

nwg-shell 包提供了 nwg-shell-installer 脚本,可以运行该脚本来交互式地为所有 nwg-shell 组件生成默认配置,以及为 Sway/Hyprland 生成自定义配置。

警告 nwg-shell-installer 脚本适用于全新安装,因为它会恢复/覆盖每个 nwg-shell 组件的配置和样式表,还会覆盖 Sway (或 Hyprland) 的主配置文件(脚本会提前创建 Sway/Hyprland 主配置文件的备份)。

对于 Sway,运行

$ nwg-shell-installer -a

对于 Sway 和 Hyprland

$ nwg-shell-installer -a -hypr
注意 nwg-shell-installer 脚本期望在运行 **之前** 安装 网页浏览器文件管理器文本编辑器,以便正确设置快捷键。建议使用的有 firefoxthunartypobuster,但也可以安装其他工具。

或者,可以通过图形界面修改每个 nwg-shell 组件的配置和样式表,或者通过修改 ~/.config/component_name 下的相应文件来修改。

最后,可以 启用 greetd.service(这样 greetd 将在启动时启动),并 设置 nwg-hello 登录管理器

Shell 组件

nwg-shell 包提供了以下 nwg-shell 组件

注意 这些组件中的大多数都可以单独安装和使用。
  • azote — 适用于 wlroots 合成器和其他一些窗口管理器的壁纸管理器。
https://github.com/nwg-piotr/azote || azote
  • gopsuinfo — 一个基于 gopsutil 的命令,用于在 Waybar 等面板中显示系统使用信息(文本形式),或在 tint2 和 nwg-panel 执行器中显示图标/文本。
https://github.com/nwg-piotr/gopsuinfo || gopsuinfo
  • nwg-bar — 适用于 wlroots 合成器的基于 GTK3 的按钮栏。
https://github.com/nwg-piotr/nwg-bar || nwg-bar
  • nwg-clipman — 适用于 cliphist 的基于 GTK3 的 GUI。
https://github.com/nwg-piotr/nwg-clipman || nwg-clipman
  • nwg-displays — 适用于 sway 和 Hyprland 的输出管理工具。
https://github.com/nwg-piotr/nwg-displays || nwg-displays
  • nwg-dock — 适用于 Sway 的基于 GTK3 的 Dock。
https://github.com/nwg-piotr/nwg-dock || nwg-dock
  • nwg-dock-hyprland — 适用于 Hyprland 的基于 GTK3 的 Dock。
https://github.com/nwg-piotr/nwg-dock-hyprland || nwg-dock-hyprland
  • nwg-drawer — 适用于 wlroots 合成器的应用程序抽屉。
https://github.com/nwg-piotr/nwg-drawer || nwg-drawer
  • nwg-hello — 使用 Python 编写的,适用于 greetd 的基于 GTK3 的登录管理器。
https://github.com/nwg-piotr/nwg-hello || nwg-hello
  • nwg-icon-picker — 带有文本搜索选项的 GTK 图标选择器。
https://github.com/nwg-piotr/nwg-icon-picker || nwg-icon-picker
  • nwg-look — 适用于 wlroots 环境的 GTK3 设置编辑器。
https://github.com/nwg-piotr/nwg-look || nwg-look
  • nwg-menu — nwg-panel 的 MenuStart 插件,也可独立运行。
https://github.com/nwg-piotr/nwg-menu || nwg-menu
  • nwg-panel — 适用于 sway 和 Hyprland Wayland 合成器的基于 GTK3 的面板。
https://github.com/nwg-piotr/nwg-panel || nwg-panel
  • nwg-readme-browser — 基于 WebKitGTK 的 README 文件浏览器。
https://github.com/nwg-piotr/nwg-readme-browser || nwg-readme-browser
  • nwg-shell — nwg-shell 项目的安装程序和元软件包:适用于 Sway 和 Hyprland Wayland 合成器的基于 GTK3 的 shell。
https://github.com/nwg-piotr/nwg-shell || nwg-shell
  • nwg-shell-config — nwg-shell 配置工具。
https://github.com/nwg-piotr/nwg-shell-config || nwg-shell-config
  • nwg-shell-wallpapers — nwg-shell 项目贡献的壁纸选集。
https://github.com/nwg-piotr/nwg-shell-wallpapers || nwg-shell-wallpapers