[Unit] BindsTo=autostart.target ConditionEnvironment=MACHINE_DEFAULT_SCREENPROFILE [Service] Type=oneshot # systemd.service(5): # > The command to execute may contain spaces, but control characters are not # > allowed. ExecStart=bash -c '%h/.screencfg/${MACHINE_DEFAULT_SCREENPROFILE}.sh' RemainAfterExit=true