mirror of
https://github.com/nix-community/home-manager
synced 2024-11-18 17:19:45 +01:00
19 lines
422 B
Text
19 lines
422 B
Text
|
if [[ ! -v HM_XPROFILE_SOURCED ]]; then
|
||
|
. ~/.xprofile
|
||
|
fi
|
||
|
unset HM_XPROFILE_SOURCED
|
||
|
|
||
|
systemctl --user start hm-graphical-session.target
|
||
|
|
||
|
init extra commands
|
||
|
|
||
|
window manager command
|
||
|
|
||
|
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
|