cross-posted from: https://lemmy.world/post/21426498

I use nixos + greetd + tuigreet + hyprland. I missed to mention that I wanted to disable or hide the logs that gets shows when starting hyprland from tty terminal by writing Hyprland or when using greetd tuigreet. After entering my username and password, These logs show before hyprland starts, I want to avoid that

    • Yash Raj@lemmy.worldOP
      link
      fedilink
      arrow-up
      1
      ·
      3 hours ago

      So does it mean passing --cmd Hyprland > /dev/null to Tuigreet? If so then that wouldn’t work with my setup, as I use sessions instead of cmd. Here is how I have it in nixos

          services.greetd = {
            enable = true;
            settings = {
              default_session = {
                user = "greeter";
                command = ''
                  ${getExe' pkgs.unstable.greetd.tuigreet "tuigreet"} \
                  --time \
                  --sessions ${cfg.sessionDirs} \
                  --remember \
                  --remember-session
                '';
              };
            };
          };
      
      

      The sessionDirs is this

      modules.services.greetd.sessionDirs = ["${hyprlandPackage}/share/wayland-sessions"];
      

      This is a link to my dotfiles where I have it:

      • 2xsaiko@discuss.tchncs.de
        link
        fedilink
        arrow-up
        1
        ·
        56 minutes ago

        You have NixOS, it’s easy to give it a custom session path for that.

        Also I would use systemd-cat so the output goes into the journal instead of nowhere.