So basically i was using UWSM with hyprland for few days and i did not able to fix this issue whenever i try to logout i get stuck at SDDM’s black screen or SDDM does not come. Later i had to do TTY for restart. even using the command uwsm stop
did not helped anything over hyprctl dispatch exit
i just get black screen.
How did i have enabled? Here is the config. And please let me know about how i can fix it.
# Hyprland.
programs = {
# waybar.enable = true;
hyprland = {
enable = true;
xwayland.enable = true;
withUWSM = true;
# package = inputs.hyprland.packages.${pkgs.system}.hyprland;
};
};
{
pkgs,
lib,
inputs,
...
}: {
imports = [
inputs.sddm-sugar-candy-nix.nixosModules.default
];
nixpkgs = {
overlays = [
inputs.sddm-sugar-candy-nix.overlays.default
];
};
# Add UWSM
programs.uwsm = {
enable = true;
waylandCompositors = {
hyprland = {
prettyName = "Hyprland";
comment = "Hyprland compositor managed by UWSM";
binPath = "/run/current-system/sw/bin/Hyprland";
};
};
};
# Add this to ensure proper session management
services.logind.extraConfig = ''
HandlePowerKey=suspend
HandleLidSwitch=suspend
'';
# SDDM
services = {
displayManager = {
defaultSession = "hyprland-uwsm";
sddm = {
enable = true;
enableHidpi = true;
wayland.enable = true;
settings = {
General = {
HaltCommand = "/run/current-system/sw/bin/systemctl poweroff";
RebootCommand = "/run/current-system/sw/bin/systemctl reboot";
};
# If you had autologin settings, add them here too
};
extraPackages = with pkgs; [
# SDDM Extra packages for the theme. #BUG: Will not work as the theme as qt5 in it.
# kdePackages.qtsvg
#kdePackages.qt5compat
#kdePackages.qtdeclarative
#libsForQt5.qt5.qtgraphicaleffects
# SDDM Extra packages for the theme.
libsForQt5.qtgraphicaleffects
libsForQt5.qt5.qtsvg
libsForQt5.qt5ct
libsForQt5.qtquickcontrols2
];
# settings = {
# Autologin = {
# Session = "hyprland.desktop";
# User = "Linux-DADDY";
# };
# };
autoNumlock = true;
sugarCandyNix = {
enable = true;
settings = {
#Background = lib.cleanSource ./Lock_Screen_Pictures/Cloudsday.jpg;
Background = lib.cleanSource ./Lock_Screen_Pictures/a_man_standing_in_a_dark_place_with_a_large_circle_of_light.jpg;
ScreenWidth = 1920;
ScreenHeight = 1080;
FormPosition = "left";
HaveFormBackground = true;
PartialBlur = true;
MainColor = "#cdd6f4";
AccentColor = "#89dceb";
};
};
};
};
};
}