关于 Steam 在 hyprland 启动 #48

Closed
opened 2025-12-28 23:19:01 +01:00 by adam · 3 comments
Owner

Originally created by @LokiSharp on GitHub (Oct 21, 2024).

我正在参考你的配置构建自己的系统,启动 Steam 提示 cannot connection to X。我发现你的 hyprland 配置里没有启用 xserver 和 xwayland。需要修改什么配置让 steam 支持在 hyprland 启动?

Originally created by @LokiSharp on GitHub (Oct 21, 2024). 我正在参考你的配置构建自己的系统,启动 Steam 提示 cannot connection to X。我发现你的 hyprland 配置里没有启用 xserver 和 xwayland。需要修改什么配置让 steam 支持在 hyprland 启动?
adam closed this issue 2025-12-28 23:19:01 +01:00
Author
Owner

@ryan4yin commented on GitHub (Oct 22, 2024):

很久没在 NixOS 上用过 Steam 了,你要不抄抄别人的配置吧,我估计是被我改坏掉了。

@ryan4yin commented on GitHub (Oct 22, 2024): 很久没在 NixOS 上用过 Steam 了,你要不抄抄别人的配置吧,我估计是被我改坏掉了。
Author
Owner

@DataEraserC commented on GitHub (Oct 22, 2024):

我这边steam工作正常

Window 22eb2cd0 -> Steam:
        mapped: 1
        hidden: 0
        at: 14,59
        size: 2532,1527
        workspace: 4 (4)
        floating: 0
        pseudo: 0
        monitor: 0
        class: steam
        title: Steam
        initialClass: steam
        initialTitle: Steam
        pid: 395438
        xwayland: 1
        pinned: 0
        fullscreen: 0
        fullscreenClient: 0
        grouped: 0
        tags:
        swallowing: 0
        focusHistoryID: 3

另外hyprland的xwayland貌似是在这里启用了
https://mynixos.com/home-manager/option/wayland.windowManager.hyprland.xwayland.enable
https://github.com/ryan4yin/nix-config/blob/main/home/linux/gui/hyprland/values/hyprland.nix#L13
也有可能是因为我自己改了一些东西导致它正常工作还是什么原因(之前因为chrome里面拖拽会导致chrome无法操作的bug更新了hyprland到对chrome的bug进行了更好的处理的版本)

@DataEraserC commented on GitHub (Oct 22, 2024): 我这边steam工作正常 ``` Window 22eb2cd0 -> Steam: mapped: 1 hidden: 0 at: 14,59 size: 2532,1527 workspace: 4 (4) floating: 0 pseudo: 0 monitor: 0 class: steam title: Steam initialClass: steam initialTitle: Steam pid: 395438 xwayland: 1 pinned: 0 fullscreen: 0 fullscreenClient: 0 grouped: 0 tags: swallowing: 0 focusHistoryID: 3 ``` 另外hyprland的xwayland貌似是在这里启用了 https://mynixos.com/home-manager/option/wayland.windowManager.hyprland.xwayland.enable https://github.com/ryan4yin/nix-config/blob/main/home/linux/gui/hyprland/values/hyprland.nix#L13 也有可能是因为我自己改了一些东西导致它正常工作还是什么原因(之前因为[chrome里面拖拽会导致chrome无法操作的bug](https://github.com/hyprwm/Hyprland/issues/7496)更新了hyprland到对chrome的bug进行了更好的处理的版本)
Author
Owner

@LokiSharp commented on GitHub (Oct 22, 2024):

我知道原因了,我之前 pkgs 选择的 24.05 版本,切换到和你相同的 unstable 就没问题了。

@LokiSharp commented on GitHub (Oct 22, 2024): 我知道原因了,我之前 pkgs 选择的 24.05 版本,切换到和你相同的 unstable 就没问题了。
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/nix-config#48