How do you use plymouth with custom WM?
Hi, I start my WM (Sway) without a DM from a systemd units. I am having problems finding out which combination of Provides
, Before
, Conflicts
e.t.c. I would need to put in my unit file.
With certain combinations plymouth hangs on boot, with others it does not hang but then does not show on shutdown.
What is the recommended set of options?
Here is my current unit file (does not hang on boot, but does not show plymouth on shutdown/reboot):
[Unit]
Description=Sway compositor
After=dbus.socket
After=getty@tty%i.service
After=systemd-logind.service
After=systemd-user-sessions.service
Before=graphical.target
Wants=dbus.socket
Wants=systemd-logind.service
ConditionPathExists=/dev/tty0
Conflicts=getty@tty%i.service
# Stuff to stop plymouth having a stroke
Conflicts=plymouth-quit.service
After=plymouth-quit.service
[Service]
Type=simple
ExecStartPre=/usr/bin/chvt %I
ExecStart=/usr/bin/sway
EnvironmentFile=/home/rhys/.config/sway/environment
TTYPath=/dev/tty%I
TTYReset=yes
TTYVHangup=yes
TTYVTDisallocate=yes
PAMName=login
User=rhys
WorkingDirectory=/home/rhys
Restart=on-failure
RestartSec=2
StandardInput=tty
StandardError=journal
StandardOutput=journal
Nice=-5
[Install]
WantedBy=graphical.target
Alias=display-manager.service
DefaultInstance=1