DankMaterialShell icon indicating copy to clipboard operation
DankMaterialShell copied to clipboard

how to change the background of greeter?

Open Enceka opened this issue 1 year ago • 9 comments

Compositor

  • [x] niri
  • [ ] Hyprland
  • [ ] other

Description

i used dms greeter install to setup greeter

And I want to keep the lock screen wallpaper consistent with the system wallpaper, just like the lock screen wallpaper

Really appreciate for your help!☺️

Configuration Details

configuration is the default(just modified the keybind and input for touchpad)

here is session.json

{
  "isLightMode": false,
  "wallpaperPath": "/home/enceka/Pictures/wallpapers/default.jpg",
  "wallpaperLastPath": "",
  "profileLastPath": "",
  "perMonitorWallpaper": false,
  "monitorWallpapers": {},
  "perModeWallpaper": false,
  "wallpaperPathLight": "file:///home/enceka/Pictures/wallpapers/sundown-over-water.jpg",
  "wallpaperPathDark": "file:///home/enceka/Pictures/wallpapers/sundown-over-water.jpg",
  "monitorWallpapersLight": {},
  "monitorWallpapersDark": {},
  "doNotDisturb": false,
  "nightModeEnabled": false,
  "nightModeTemperature": 4500,
  "nightModeAutoEnabled": false,
  "nightModeAutoMode": "time",
  "nightModeStartHour": 18,
  "nightModeStartMinute": 0,
  "nightModeEndHour": 6,
  "nightModeEndMinute": 0,
  "latitude": 0,
  "longitude": 0,
  "nightModeLocationProvider": "",
  "pinnedApps": [],
  "selectedGpuIndex": 0,
  "nvidiaGpuTempEnabled": false,
  "nonNvidiaGpuTempEnabled": false,
  "enabledGpuPciIds": [],
  "wallpaperCyclingEnabled": true,
  "wallpaperCyclingMode": "interval",
  "wallpaperCyclingInterval": 300,
  "wallpaperCyclingTime": "06:00",
  "monitorCyclingSettings": {
    "eDP-1": {
      "enabled": true,
      "mode": "interval",
      "interval": 300,
      "time": "06:00"
    }
  },
  "lastBrightnessDevice": "",
  "launchPrefix": "",
  "wallpaperTransition": "random",
  "includedTransitions": [
    "fade",
    "wipe",
    "disc",
    "stripes",
    "iris bloom",
    "pixelate",
    "portal"
  ],
  "acMonitorTimeout": 900,
  "acLockTimeout": 600,
  "acSuspendTimeout": 0,
  "acHibernateTimeout": 0,
  "batteryMonitorTimeout": 600,
  "batteryLockTimeout": 300,
  "batterySuspendTimeout": 900,
  "batteryHibernateTimeout": 1800,
  "lockBeforeSuspend": false,
  "recentColors": [],
  "showThirdPartyPlugins": true
}

Screenshots/Recordings

lockscreen background Image

greeter background Image

Enceka avatar Oct 08 '25 11:10 Enceka

Check for symlinks in /etc/greetd/.dms which is what the installer tries to do: ls -l /etc/greetd/.dms

If they are broken for some reason, then they can be re-created. Alternative is that the greeter user may not have permissions to read those files.

What is the distribution?

bbedward avatar Oct 08 '25 16:10 bbedward

Check for symlinks in /etc/greetd/.dms which is what the installer tries to do: ls -l /etc/greetd/.dms

If they are broken for some reason, then they can be re-created. Alternative is that the greeter user may not have permissions to read those files.

What is the distribution?

You can see that

Image

I am using archlinux

Enceka avatar Oct 08 '25 16:10 Enceka

I have tried to change the owner of these symlink file,still not work

Image

Enceka avatar Oct 08 '25 17:10 Enceka

I made some changes to run greeter as a different user, create its own group, added group perms to the files.

Try to update, paru -S dms-shell-git

then uninstall greetd to clean it up.

sudo pacman -R greetd greetd-agreety
sudo rm -r /etc/greetd

Then reinstall

dms greeter install`

That sequence, worked for me on arch

bbedward avatar Oct 09 '25 03:10 bbedward

Seemed still not working,but i found that the json file in that dir were originally owned by root so i tried to change the own and group to the greeter:dms-greeter,but still not work

Image

Enceka avatar Oct 09 '25 06:10 Enceka

when i reinstall greeter,symlink file was originally owned by root but the dir was owned by greeter:dms-greeter Image

Enceka avatar Oct 09 '25 06:10 Enceka

Seemed still not working,but i found that the json file in that dir were originally owned by root so i tried to change the own and group to the greeter:dms-greeter,but still not work

Image

and i also tried to change symlink file to greeter:greeter,but still not work Is there another way?

Enceka avatar Oct 09 '25 06:10 Enceka

okay,i found that greeter cannot read those json file,so i fixed it by doing that

  1. Add greeter to the main user’s group:
    sudo usermod -aG <username> greeter
    
  2. Give group execute/read permissions on the relevant directories:
    chmod g+x /home/<username>
    chmod g+rx /home/<username>/.local
    chmod g+rx /home/<username>/.local/state
    chmod g+rx /home/<username>/.local/state/DankMaterialShell
    
    chmod g+rx /home/<username>/.cache
    chmod g+rx /home/<username>/.cache/quickshell
    chmod g+rx /home/<username>/.cache/quickshell/dankshell
    
    chmod g+rx /home/<username>/.config
    chmod g+rx /home/<username>/.config/DankMaterialShell
    
  3. Ensure the actual files are group-readable:
    chmod g+r /home/<username>/.local/state/DankMaterialShell/session.json
    chmod g+r /home/<username>/.cache/quickshell/dankshell/dms-colors.json
    chmod g+r /home/<username>/.config/DankMaterialShell/settings.json
    

So idk why this would happened, have something i forgot to do?

Enceka avatar Oct 09 '25 14:10 Enceka

Im having the same issue how did you fixed it?

Lzycode-byte avatar Nov 04 '25 03:11 Lzycode-byte