英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论