hyprwm / Hyprland

Hyprland is an independent, highly customizable, dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
https://hyprland.org
BSD 3-Clause "New" or "Revised" License
21.34k stars 898 forks source link

[NixOS] starting hyprland through systemd wayland-session not working properly #8311

Open DragonHunter274 opened 1 day ago

DragonHunter274 commented 1 day ago

Already reported ? *

Regression?

No

System Info and Version

System/Version info ```sh Hyprland, built from branch v0.44.1-b at commit 4520b30d498daca8079365bdb909a8dea38e8d55 (version: bump to 0.44.1). Date: 2024-10-09 Tag: v0.44.1, commits: 4520b30d498daca8079365bdb909a8dea38e8d55 built against aquamarine 0.4.3 flags: (if any) System Information: System name: Linux Node name: thinkpad-simon Release: 6.6.58 Version: #1-NixOS SMP PREEMPT_DYNAMIC Tue Oct 22 13:46:36 UTC 2024 GPU information: 00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics 620 [8086:5916] (rev 02) (prog-if 00 [VGA controller]) 00:13.0 Non-VGA unclassified device [0000]: Intel Corporation Sunrise Point-LP Integrated Sensor Hub [8086:9d35] (rev 21) os-release: ANSI_COLOR="1;34" BUG_REPORT_URL="https://github.com/NixOS/nixpkgs/issues" BUILD_ID="24.11.20241029.807e915" DOCUMENTATION_URL="https://nixos.org/learn.html" HOME_URL="https://nixos.org/" ID=nixos IMAGE_ID="" IMAGE_VERSION="" LOGO="nix-snowflake" NAME=NixOS PRETTY_NAME="NixOS 24.11 (Vicuna)" SUPPORT_URL="https://nixos.org/community.html" VERSION="24.11 (Vicuna)" VERSION_CODENAME=vicuna VERSION_ID="24.11" plugins: ======Config-Start====== Config File: /home/simon/.config/hypr/hyprland.conf: Read Succeeded exec-once = /nix/store/ldpr2fzzk97pzml87z7lmvhqg7pp65lf-dbus-1.14.10/bin/dbus-update-activation-environment --systemd DISPLAY HYPRLAND_INSTANCE_SIGNATURE WAYLAND_DISPLAY XDG_CURRENT_DESKTOP && systemctl --user stop hyprland-session.target && systemctl --user start hyprland-session.target $mod=SUPER general { col.active_border=rgb(2aa198) col.inactive_border=0x00000000 gaps_in=2 gaps_out=5 layout=master monitor=eDP-1, 1920x1080, 0x0, 1 } input { touchpad { natural_scroll=true } float_switch_override_focus=0 follow_mouse=0 kb_layout=de mouse_refocus=0 numlock_by_default=true sensitivity=0 } bind=$mod_SHIFT, Return, exec, kitty bind=$mod_SHIFT, Q, killactive bind=$mod, P, exec, grimblast --notify save screen bind=, Print, exec, grimblast --freeze copy area bind=$mod, R, exec, killall rofi || rofi -show bind=$mod, bracketright, exec, kitty yazi bind=$mod_ALT, delete, exit bind=$mod, V, togglefloating bind=$mod, X, pin bind=$mod, F, fullscreen bind=$mod, Tab, exec, hyprctl dispatch overview:toggle bind=$mod, S, swapactiveworkspaces, 0 1 bind=$mod_SHIFT, S, movetoworkspace, special bind=$mod, O, exec, killall .ironbar-wrapper inotifywait pactl || ironbar bind=$mod, M, focusmonitor, +1 bind=$mod_SHIFT, M, focusmonitor, -1 bind=$mod, Return, layoutmsg, swapwithmaster master bind=$mod, J, layoutmsg, cyclenext bind=$mod, K, layoutmsg, cycleprev bind=$mod_SHIFT, J, layoutmsg, swapnext bind=$mod_SHIFT, K, layoutmsg, swapprev bind=$mod, C, splitratio, exact 0.80 bind=$mod, C, layoutmsg, orientationtop bind=$mod_SHIFT, C, splitratio, exact 0.65 bind=$mod_SHIFT, C, layoutmsg, orientationleft bind=$mod, H, layoutmsg, addmaster bind=$mod, L, layoutmsg, removemaster bind=$mod_SHIFT, H, splitratio, -0.05 bind=$mod_SHIFT, L, splitratio, +0.05 bind=$mod_ALT, L, exec, hyprlock bind=$mod, 1, exec, hyprnome --previous bind=$mod, 2, exec, hyprnome bind=$mod_SHIFT, 1, exec, hyprnome --previous --move bind=$mod_SHIFT, 2, exec, hyprnome --move bind=$mod, mouse_down, workspace, e+1 bind=$mod, mouse_up, workspace, e-1 bindl=, XF86AudioPrev, exec, playerctl -p playerctld previous bindl=, XF86AudioNext, exec, playerctl -p playerctld next bindl=, XF86AudioPlay, exec, playerctl -p playerctld play bindl=, XF86AudioPause, exec, playerctl -p playerctld pause bindl=, XF86AudioForward, exec, playerctl -p playerctld position 10+ bindl=, XF86AudioRewind, exec, playerctl -p playerctld position 10- bindl=, XF86Messenger, togglespecialworkspace bindm=$mod, mouse:272, movewindow bindm=$mod, mouse:273, resizewindow exec-once=/nix/store/vx31v8xdqv9vmjpn8kkfxii545n95lzx-start/bin/start ======Config-End======== ```

Description

when launching hyprland through the hyprland-systemd session none of my keybinds work and my cursor is bigger than usual

Also the 2 sessions are both just named Hyprland so it's always a guessing game which one is the working one.

How to reproduce

install hyprland from the nix flake and select the hyprland systemd session in the display manager

Crash reports, logs, images, videos

No response

izmyname commented 13 hours ago

Also the 2 sessions are both just named Hyprland so it's always a guessing game which one is the working one.

My oversight. Created a PR to address this.

Try to start Hyprland directly from your tty, by typing systemctl --user start --wait hyprland-session.service.

exec-once = /nix/store/ldpr2fzzk97pzml87z7lmvhqg7pp65lf-dbus-1.14.10/bin/dbus-update-activation-environment --systemd DISPLAY HYPRLAND_INSTANCE_SIGNATURE WAYLAND_DISPLAY XDG_CURRENT_DESKTOP && systemctl --user stop hyprland-session.target && systemctl --user start hyprland-session.target

What is this? If you use dbus-broker - you don't need this string at all, if not - remove && systemctl --user stop hyprland-session.target && systemctl --user start hyprland-session.target