#!/bin/sh # Xsetup_0 - branded backdrop drawn before the xlogin box appears. # Runs as root on display :0. Absolute paths only. # # HOME: xdm's setup env is minimal; feh needs a HOME to read/write its config. # XAUTHORITY: connect to the access-controlled (foreign) server started by # the zyginit start.sh with our MIT-MAGIC-COOKIE. export HOME=/root export XAUTHORITY=/var/lib/xdm/authdir/authfiles/A:0 /usr/local/bin/xsetroot -solid "#0d1117" [ -r /usr/local/share/backgrounds/hammerhead.png ] && \ /usr/local/bin/feh --bg-fill /usr/local/share/backgrounds/hammerhead.png & # Shutdown/Reboot button bar, bottom-right corner (no WM on the greeter). # Killed by Xstartup on login so it never leaks into the user's session. /usr/local/bin/hh-greeter-power -geometry -40-12 &