Created
March 17, 2018 15:37
-
-
Save anonymous/70e9df2bf9b2f68320736b9e2340403c 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
. "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh" | |
if [[ -e "$HOME/.profile" ]]; then | |
. "$HOME/.profile" | |
fi | |
# If there are any running services from a previous session. | |
# Need to run this in xprofile because the NixOS xsession | |
# script starts up graphical-session.target. | |
systemctl --user stop graphical-session.target graphical-session-pre.target | |
systemctl --user import-environment DBUS_SESSION_BUS_ADDRESS | |
systemctl --user import-environment DISPLAY | |
systemctl --user import-environment SSH_AUTH_SOCK | |
systemctl --user import-environment XAUTHORITY | |
systemctl --user import-environment XDG_DATA_DIRS | |
systemctl --user import-environment XDG_RUNTIME_DIR | |
systemctl --user import-environment XDG_SESSION_ID | |
/nix/store/vvdf5anikzcwhwx6b1v77kcmhihvj1vp-xkbcomp-1.4.0/bin/xkbcomp /nix/store/7kp9mqx13bjm09w1hmlg060awiavhk4g-keymap.xkb $DISPLAY | |
/nix/store/gxambgbggxs5clcia55rvhi6s5q9i7zy-xcape-1.2/bin/xcape -e '#94=Escape' & | |
export HM_XPROFILE_SOURCED=1 |
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
if [[ ! -v HM_XPROFILE_SOURCED ]]; then | |
. ~/.xprofile | |
fi | |
unset HM_XPROFILE_SOURCED | |
systemctl --user start hm-graphical-session.target | |
/nix/store/lhl8rz6qrm37fxngbf8scfyv4qichh4q-xmonad-with-packages/bin/xmonad | |
systemctl --user stop graphical-session.target | |
systemctl --user stop graphical-session-pre.target | |
# Wait until the units actually stop. | |
while [[ -n "$(systemctl --user --no-legend --state=deactivating list-units)" ]]; do | |
sleep 0.5 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment