Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automation tools that integrate with the user's system #209

Open
robin-swift opened this issue Nov 23, 2022 · 0 comments
Open

Automation tools that integrate with the user's system #209

robin-swift opened this issue Nov 23, 2022 · 0 comments

Comments

@robin-swift
Copy link
Member

robin-swift commented Nov 23, 2022

@marshallapparalautomation suggested to me via email that we could have a version of embroider that automatically converts the contents of a folder dynamically like a traditional UNIX daemon.

Rather than get knee deep in systemd, since this is something that could need versions for many different systems, lets sketch out a simple shell script.

Sketch of how the script would look, to be hooked onto, for example ~/.xinitrc.

# [At the bottom of .xinitrc]
export EMBROIDER_DIR="~/to_embroider"
. ~/embroidermodder2/embroiderd &

where embroiderd is our "UNIX daemon", here actually just a loop that runs without the need for a user-visible terminal

#!/bin/sh

while [ 1 ]
do
    for file in $EMBROIDER_DIR/*.svg
    do
        embroider -to dst $file
    done
    # To stop our script consuming too many system resources
    sleep 3
done

He can chime in here if that's not what what he means.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant