stylix icon indicating copy to clipboard operation
stylix copied to clipboard

Add support for SDDM

Open jeiang opened this issue 1 year ago • 6 comments

Not sure if this would be tied to #51.

Probably could have a theme and override its theme.conf with stylix's colors, font & background.

jeiang avatar Mar 28 '23 21:03 jeiang

There is a simple sddm theme that you can use

  environment.systemPackages = let bg = "#2e3440"; in [
    (pkgs.where-is-my-sddm-theme.override {
      themeConfig.General = {
        background = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
        backgroundFill = bg;
        backgroundMode = "none";
      };
    })
  ];

image

name-snrl avatar Nov 02 '23 02:11 name-snrl

🤔 I actually think we could use the services.xserver.displayManager.sddm.settings and services.xserver.displayManager.sddm.theme option for configuring the SDDM theme. I actually made something like below a while back when I was using a custom module for setting the cursor themes across the system

       services.xserver.displayManager.sddm.settings.Theme = (mkMerge [
          #({ Font = "Noto Sans,10,-1,0,50,0,0,0,0,0"; })
          (mkIf (cfg.cursorTheme != null) {
            CursorTheme = cfg.cursorTheme.name;
            CursorSize = cfg.cursorTheme.size;
          })

Which works for changing the cursor theme and size for the stock Breeze them; haven't tested using other themes however. There's also the ArchLinux wiki that describes what theme settings are available for SDDM, so we could also use this as a baseline for creating a module to modify SDDM. Would this be something possible to do @danth?

NovaViper avatar Mar 26 '24 21:03 NovaViper

Potentially related:

  • https://github.com/danth/stylix/pull/297

trueNAHO avatar Mar 27 '24 14:03 trueNAHO

Is this currently being worked on, or are there other priorities on top?

Thiago-Assis-T avatar Jun 25 '24 02:06 Thiago-Assis-T

I'm not aware of anyone working on this

danth avatar Jun 25 '24 12:06 danth