Hyprland with UWSM

Universal Wayland Session Manager
Systemd startup – Hyprland Wiki

  • 使用 UWSM 启动程序,而非作为 Compositor 的子进程
  • Configure UWSM to launch Hyprland from a display manager like SDDM. - Add a new desktop entry in display managers
  • Launch apps on startup in Hyprland
exec-once = uwsm app -- mycommand --arg1 --arg2
bind = SUPER, E, exec, uwsm app -- pcmanfm-qt.desktop