Disable the *hyprland* startup logs
from mobsenpai@lemmy.world to linux@lemmy.ml on 30 Oct 03:43
https://lemmy.world/post/21426500

cross-posted from: 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

#linux

threaded - newest

Samsy@lemmy.ml on 30 Oct 04:44 next collapse

Disable? These can’t be disabled.

You mean you don’t want to see them? There is a package called Plymouth, which hints the logs and shows a Logo instead.

[deleted] on 30 Oct 04:56 next collapse

.

mobsenpai@lemmy.world on 30 Oct 07:44 next collapse

Yeah , no For system logs I have it on quiet but these are for when Hyprland starts. I forgot to mention that.

[deleted] on 30 Oct 04:56 collapse

.

toastal@lemmy.ml on 30 Oct 07:32 next collapse

Why tho? The logs give you information & progress. After boot you don’t even see it.

I honestly wish Android booted like this.

mobsenpai@lemmy.world on 30 Oct 07:43 next collapse

I know… For a long and I mean long time I had it, but yk I wan’t to hide it just to spice things up.

communist@lemmy.frozeninferno.xyz on 31 Oct 05:23 collapse

they go away so fast i can’t even read them, so, they serve no purpose to me, other than being a brief gross flash where my startup animation goes away

communist@lemmy.frozeninferno.xyz on 30 Oct 07:59 collapse

Hyprland > /dev/null

mobsenpai@lemmy.world on 30 Oct 08:19 next collapse

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 on 30 Oct 10:33 next collapse

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.

mobsenpai@lemmy.world on 30 Oct 15:00 collapse

Would you be able to provide an example code? It would help me grasp the concept more effectively.

communist@lemmy.frozeninferno.xyz on 30 Oct 21:02 collapse

gitlab.com/that1communist/dotfiles/-/…/sys.nix

mine is in here somewhere ctrl f for it

VinesNFluff@pawb.social on 30 Oct 10:28 collapse

Or push it to a file, just in general. That way if something goes tits up you can still check it later.