···
Xft.hintstyle: hintslight
-
# file provided by services.xserver.displayManager.session.script
-
xsession = wm: dm: pkgs.writeScript "xsession"
-
# $1 = <desktop-manager>+<window-manager>
-
# Actual parameters (FIXME):
-
# SDDM is calling this script like the following:
-
# $1 = /nix/store/xxx-xsession (= $0)
-
# $2 = <desktop-manager>+<window-manager>
-
# SLiM is using the following parameter:
-
# $1 = /nix/store/xxx-xsession <desktop-manager>+<window-manager>
-
# LightDM keeps the double quotes:
-
# $1 = /nix/store/xxx-xsession "<desktop-manager>+<window-manager>"
-
# The fake/auto display manager doesn't use any parameters and GDM is
-
# If you want to "debug" this script don't print the parameters to stdout
-
# or stderr because this script will be executed multiple times and the
-
# output won't be visible in the log when the script is executed for the
-
# first time (e.g. append them to a file instead)!
-
# All of the above cases are handled by the following hack (FIXME).
-
# Since this line is *very important* for *all display managers* it is
-
# very important to test changes to the following line with all display
-
if [ "''${1:0:1}" = "/" ]; then eval exec "$1" "$2" ; fi
-
# Now it should be safe to assume that the script was called with the
-
# The first argument of this script is the session type.
-
if [ "$sessionType" = default ]; then sessionType=""; fi
${optionalString cfg.startDbusSession ''
if test -z "$DBUS_SESSION_BUS_ADDRESS"; then
-
exec ${pkgs.dbus.dbus-launch} --exit-with-session "$0" "$sessionType"
${optionalString cfg.displayManager.job.logToJournal ''
if [ -z "$_DID_SYSTEMD_CAT" ]; then
export _DID_SYSTEMD_CAT=1
-
exec ${config.systemd.package}/bin/systemd-cat -t xsession "$0" "$sessionType"
···
${config.systemd.package}/bin/systemctl --user import-environment DISPLAY XAUTHORITY DBUS_SESSION_BUS_ADDRESS
${xorg.xrdb}/bin/xrdb -merge ${xresourcesXft}
if test -e ~/.Xresources; then
${xorg.xrdb}/bin/xrdb -merge ~/.Xresources
···
# Allow the user to setup a custom session type.
if test -x ~/.xsession; then
-
if test "$sessionType" = "custom"; then
-
sessionType="" # fall-thru if there is no ~/.xsession
# The session type is "<desktop-manager>+<window-manager>", so
···
TryExec=${cfg.displayManager.session.script}
Exec=${cfg.displayManager.session.script} "${n}"
-
X-GDM-BypassXsession=true
···
(filter (w: d.name != "none" || w.name != "none") wm));
desktops = mkDesktops names;