Nwg-shell

出自 ArchWiki

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

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

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

安装

nwg-shell 组件可以通过 安装 nwg-shell (元)软件包来安装

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

nwg-shell-installer 脚本(请参阅 #配置)还需要安装 web 浏览器文件管理器文本编辑器然后才能运行,以便正确设置快捷键。建议的软件是 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 脚本还需要安装 web 浏览器文件管理器文本编辑器然后才能运行,以便正确设置快捷键。建议的软件是 firefoxthunartypobuster,但也可以安装其他软件。

或者,可以图形化地修改每个 nwg-shell 组件的配置和样式表,或者通过修改 ~/.config/component_name 下的相关文件进行修改。

最后,可以启用 greetd.service(以便在启动时启动 greetd)并设置 nwg-hello 欢迎程序

Shell 组件

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

注意: 这些组件中的大多数都可以独立安装和使用。
  • azote — 基于 wlroots 的合成器和一些其他 WM 的壁纸管理器。
https://github.com/nwg-piotr/azote || azote
  • gopsuinfo — 一个基于 gopsutil 的命令,用于在 Waybar 等面板中以文本形式显示系统使用信息,或在 tint2 和 nwg-panel 执行器中以图标/文本形式显示。
https://github.com/nwg-piotr/gopsuinfo || gopsuinfo
  • nwg-bar — 基于 GTK3 的按钮栏,适用于基于 wlroots 的合成器。
https://github.com/nwg-piotr/nwg-bar || nwg-bar
  • nwg-clipman — 一个基于 GTK3 的 cliphist 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 — 基于 GTK3 的 dock,适用于 Sway。
https://github.com/nwg-piotr/nwg-dock || nwg-dock
  • nwg-dock-hyprland — 基于 GTK3 的 dock,适用于 Hyprland。
https://github.com/nwg-piotr/nwg-dock-hyprland || nwg-dock-hyprland
  • nwg-drawer — 基于 wlroots 的 Wayland 合成器的应用程序抽屉。
https://github.com/nwg-piotr/nwg-drawer || nwg-drawer
  • nwg-hello — 基于 GTK3 的 greetd 欢迎程序,用 python 编写。
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 — 基于 GTK3 的面板,适用于 sway 和 Hyprland Wayland 合成器。
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 项目的安装程序和元软件包:一个基于 GTK3 的 shell,适用于 Sway 和 Hyprland Wayland 合成器。
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