mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-24 21:42:51 -05:00
Suppress instructions after init install
This commit is contained in:
@@ -80,6 +80,35 @@ getent passwd greeter >/dev/null || \
|
||||
exit 0
|
||||
|
||||
%post
|
||||
===============================================================================
|
||||
DMS Greeter Installation Complete!
|
||||
===============================================================================
|
||||
Configuration status:
|
||||
- Greeter cache directory: /var/cache/dms-greeter (created with proper permissions)
|
||||
- SELinux contexts: Applied (if semanage available)
|
||||
- Greetd config: $CONFIG_STATUS
|
||||
Next steps to enable the greeter:
|
||||
1. IMPORTANT: Disable any existing display managers:
|
||||
sudo systemctl disable gdm sddm lightdm
|
||||
(Only greetd should run as the display manager)
|
||||
2. Verify greetd configuration:
|
||||
Check /etc/greetd/config.toml contains:
|
||||
[default_session]
|
||||
user = "greeter"
|
||||
command = "/usr/bin/dms-greeter --command niri"
|
||||
(Also supported: hyprland, sway)
|
||||
Note: Existing config backed up to config.toml.backup-* if modified
|
||||
3. Enable greetd service:
|
||||
sudo systemctl enable greetd
|
||||
4. (Optional) Sync your user's theme with the greeter:
|
||||
sudo usermod -aG greeter YOUR_USERNAME
|
||||
# Then LOGOUT and LOGIN to apply group membership
|
||||
ln -sf ~/.config/DankMaterialShell/settings.json /var/cache/dms-greeter/settings.json
|
||||
ln -sf ~/.local/state/DankMaterialShell/session.json /var/cache/dms-greeter/session.json
|
||||
ln -sf ~/.cache/quickshell/dankshell/dms-colors.json /var/cache/dms-greeter/colors.json
|
||||
Documentation: /usr/share/doc/dms-greeter/README.md
|
||||
===============================================================================
|
||||
|
||||
# Set SELinux context for the wrapper script on Fedora systems
|
||||
if [ -x /usr/sbin/semanage ]; then
|
||||
semanage fcontext -a -t bin_t %{_bindir}/dms-greeter 2>/dev/null || true
|
||||
@@ -123,6 +152,8 @@ elif ! grep -q "dms-greeter" "$GREETD_CONFIG"; then
|
||||
CONFIG_STATUS="Updated existing config (backed up) with $COMPOSITOR ✓"
|
||||
fi
|
||||
|
||||
# Only show banner on initial install
|
||||
if [ "$1" -eq 1 ]; then
|
||||
cat << EOF
|
||||
|
||||
===============================================================================
|
||||
@@ -164,6 +195,7 @@ Documentation: /usr/share/doc/dms-greeter/README.md
|
||||
===============================================================================
|
||||
|
||||
EOF
|
||||
fi
|
||||
|
||||
%changelog
|
||||
{{{ git_dir_changelog }}}
|
||||
|
||||
Reference in New Issue
Block a user