Variety 在 Hyprland 上如何运作?

huangapple go评论101阅读模式
英文:

How can I get Variety working on Hyprland?

问题

我正在尝试在Hyprland中使用Variety,但我没有在网上找到任何文章或问题。

有人可以告诉我如何将其集成到我的hyprland.conf中吗?

英文:

I'm trying to use Variety in Hyprland, but I haven't found an article or a Question anywhere on the web.

Can anyone tell me how I can integrate it in my hyprland.conf?

答案1

得分: 1

根据 https://www.lorenzobettini.it/2023/05/hyprland-and-the-variety-wallpaper-manager/ 中的详细说明,您首先需要安装 swaybg,然后编辑文件 ~/.config/variety/scripts/set_wallpaper,将以下行进行更改:

if [[ -n $SWAYSOCK ]]; then

更改为以下内容之一:

if [[ -n $SWAYSOCK || $XDG_CURRENT_DESKTOP == "Hyprland" ]] ; then

或者(如果您不打算使用 "sway"):

if [[ $XDG_CURRENT_DESKTOP == "Hyprland" ]] ; then

现在,Variety 可以更改您的壁纸。

英文:

As detailed here https://www.lorenzobettini.it/2023/05/hyprland-and-the-variety-wallpaper-manager/ you must first install swaybg and then you edit the file ~/.config/variety/scripts/set_wallpaper by changing the line

if [[ -n $SWAYSOCK ]]; then

into something like

if [[ -n $SWAYSOCK || $XDG_CURRENT_DESKTOP == "Hyprland" ]] ; then

or simply (if you don't plan to use "sway")

if [[ $XDG_CURRENT_DESKTOP == "Hyprland" ]] ; then

Now, Variety can change your wallpaper.

huangapple
  • 本文由 发表于 2023年2月8日 18:33:40
  • 转载请务必保留本文链接:https://go.coder-hub.com/75384486.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定