How to start bspwm using greetd

Hai, is it possible to start bspwm using greetd? I use tuigreet with the following configuration.

{ pkgs, ... }:
  services.greetd = {
    enable = true;
    settings = {
      default_session = {
        command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd bspwm";

Always got the following error message from bspwm.

The server closed the connection: can't parse display string

If its possible, how to configure greetd to start bspwm

1 Like

I think that means that bspwm was unable to connect to your Xorg server. According to the tuigreet documentation here, you need the command to be a script which will start Xorg and bspwm. Perhaps a configured startx.

The .desktop file for bspwm exists in the Nix store but it’s not aliased at a fixed path, so I don’t think tuigreet will be able to find it.

Hosted by Flying Circus.