this post was submitted on 30 Oct 2024
35 points (87.2% liked)

Linux

48157 readers
584 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

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

you are viewing a single comment's thread
view the rest of the comments
[–] communist@lemmy.frozeninferno.xyz 10 points 2 weeks ago (5 children)
[–] mobsenpai@lemmy.world 1 points 2 weeks ago (3 children)

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 1 points 2 weeks ago (1 children)

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 1 points 2 weeks ago

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

load more comments (1 replies)
load more comments (2 replies)