Hyprland的图形化登录界面 nwg-hello 推荐

今天看Hyprland很炫酷,所以果断删除了gnome(bushi) 但是 Hyprland 没有默认的图形化登录界面,下载了几个i常见的,但是感觉很难看找了很久感觉nwg-hellou不错,所以推荐一下

项目地址 https://github.com/nwg-piotr/nwg-hello

安装也很简单 

yay -S nwg-hello

然后配置 /etc/greetd/config.toml

替换 command = "agreety --cmd /bin/sh" 为 

command = "Hyprland -c /etc/nwg-hello/hyprland.conf"

为了防止 在系统更新时 config.toml 被覆盖,所以复制为 greetd.conf

至于为什么作者有写这里复制下原文

During the greetd package upgrades, the config.toml file may be overwritten with the default one. E.g. on Arch Linux your modified file gets renamed to config.toml.pacsave. This will restore the agreety greeter on your system. To avoid such a situation, you may use the alternative greetd.conf file. This has not been mentioned in docs, but greetd looks for this file first. Just copy config.toml to greetd.conf and make changes to the copy.

然后

复制/etc/nwg-hello/nwg-hello-default.json/etc/nwg-hello/nwg-hello.json

cp /etc/nwg-hello/nwg-hello-default.json /etc/nwg-hello/nwg-hello.json

根据需要调整设置,如语言、主题、会话等

复制/etc/nwg-hello/nwg-hello-default.css/etc/nwg-hello/nwg-hello.css并在那里进行更改

cp /etc/nwg-hello/nwg-hello-default.css /etc/nwg-hello/nwg-hello.css

编辑 /etc/nwg-hello/nwg-hello.css,根据需要自定义界面样式

启用 greetd 服务 (设置为开机启动)

sudo systemctl enable greetd.service

然后重启!

如果登入按钮不管用 再重启一边就好了 我是这样解决的

默认的页面是这样的

希望对你有帮助

你可能感兴趣的:(linux)