You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm moving from Sway to Hyprland. I have KDE as well and sort of use it as "Display Manager", i.e. when my machine finishes booting up, a KDE login screen shows up with a few options on the bottom left corner: Sway, KDE, Hyprland (UWSM), etc. And that's how I log in to Sway or Hyprland.
And I'm using UWSM.
The problem is, I couldn't figure out a way to gracefully exit Hyprland and go back to the login page. I've tried every option on Hyprland wiki as well as UWSM wiki but none of them work. It always log me out altogether and give me a black empty screen with a cursor blinking. I couldn't do anything else other than force power off my machine.
Here is the config that's relevant: home.nix:
wayland.windowManager.hyprland = {
enable = true;
# set the Hyprland and XDPH packages to null to use the ones from the NixOS module
# package = null;
# portalPackage = null;
systemd = {
# disable the systemd integration, as it conflicts with uwsm.
enable = false;
variables = [ "--all" ];
};
}
I don't believe I have other UWSM related configs anywhere else. I tried things like: sleep 1; loginctl terminate-user $USER loginctl terminate-user ""
but they all give me the black screen.
The only difference is hyprctl dispatch exit, which is dicouraged by Hyprland wiki, but it's the only command that can log me out back to the original graphical log in screen. However, when attempting to log back in, it gives me the black screen again so essentially no difference.
Please help. Thanks!
The text was updated successfully, but these errors were encountered:
rollschild
changed the title
Exit Hyprland on NixOS always give me black screen
[SOLVED] Exit Hyprland on NixOS always give me black screen
Feb 24, 2025
Hi,
I'm moving from Sway to Hyprland. I have KDE as well and sort of use it as "Display Manager", i.e. when my machine finishes booting up, a KDE login screen shows up with a few options on the bottom left corner: Sway, KDE, Hyprland (UWSM), etc. And that's how I log in to Sway or Hyprland.
And I'm using UWSM.
The problem is, I couldn't figure out a way to gracefully exit Hyprland and go back to the login page. I've tried every option on Hyprland wiki as well as UWSM wiki but none of them work. It always log me out altogether and give me a black empty screen with a cursor blinking. I couldn't do anything else other than force power off my machine.
Here is the config that's relevant:
home.nix
:configuration.nix
:I don't believe I have other UWSM related configs anywhere else. I tried things like:
sleep 1; loginctl terminate-user $USER
loginctl terminate-user ""
but they all give me the black screen.
The only difference is
hyprctl dispatch exit
, which is dicouraged by Hyprland wiki, but it's the only command that can log me out back to the original graphical log in screen. However, when attempting to log back in, it gives me the black screen again so essentially no difference.Please help. Thanks!
The text was updated successfully, but these errors were encountered: