Created
October 15, 2019 17:59
-
-
Save cleverca22/3f32f22fc0331526b8fc596181445059 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@amd-nixos:~]# cat /etc/systemd/system/display-manager.service | |
Environment="SLIM_CFGFILE=/nix/store/261pxy8zkfd3yqm50daqninsv32k0npm-slim.cfg" | |
ExecStart=/nix/store/bdrgyna6p8crcmz20ajnn05zx7iirv1c-unit-script-display-manager-start | |
# this tells systemd how to launch slim | |
[root@amd-nixos:~]# cat /nix/store/261pxy8zkfd3yqm50daqninsv32k0npm-slim.cfg | |
sessiondir /nix/store/lxrwmamv5701ksm1hdk5b68nrvy3lbhl-desktops/share/xsessions | |
login_cmd exec /nix/store/l6h4ya0wzb4b8mr0y58k2gh2nhfql4sn-bash-4.4-p23/bin/bash /nix/store/jqiab84xhiz0dpwagsbmnnf4y4wahm5v-xsession-wrapper "%session" | |
# this tells slim what to run after login, and where the list of available sessions is | |
[root@amd-nixos:~]# ls /nix/store/lxrwmamv5701ksm1hdk5b68nrvy3lbhl-desktops/share/xsessions -l | |
total 5 | |
-r--r--r-- 1 root root 187 Dec 31 1969 xfce.desktop | |
[root@amd-nixos:~]# cat /nix/store/jqiab84xhiz0dpwagsbmnnf4y4wahm5v-xsession-wrapper | |
if test "$1"; then | |
# Run the supplied session command. Remove any double quotes with eval. | |
eval exec "$@" | |
else | |
# Fall back to the default window/desktopManager | |
exec /nix/store/ds7zlfkbs87q24paa64w1skmn4h2m31y-xsession | |
fi | |
# this then runs the default `xsession` | |
[root@amd-nixos:~]# cat /nix/store/ds7zlfkbs87q24paa64w1skmn4h2m31y-xsession | |
# Start the desktop manager. | |
case "$desktopManager" in | |
(none) | |
if [ -e $HOME/.background-image ]; then | |
/nix/store/nfc4b2sf2n9cwpx91cl5nby1jzgdjywq-feh-3.2.1/bin/feh --bg-scale $HOME/.background-image | |
else | |
# Use a solid black background as fallback | |
/nix/store/xkz770lmfyqhrq9c1pqmddk8hkp87y54-xsetroot-1.1.2/bin/xsetroot -solid black | |
fi | |
;; | |
(xfce) | |
/nix/store/l6h4ya0wzb4b8mr0y58k2gh2nhfql4sn-bash-4.4-p23/bin/bash /nix/store/s6lf4k2x6jyvxv4yrsjwbdnlkcnadnfq-xfce4-session-4.12.1/etc/xdg/xfce4/xinitrc & | |
waitPID=$! | |
;; | |
(*) echo "$0: Desktop manager '$desktopManager' not found.";; | |
esac | |
# which runs xfce |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment