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

Custom backend command #33

Closed
musjj opened this issue Feb 21, 2024 · 3 comments
Closed

Custom backend command #33

musjj opened this issue Feb 21, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@musjj
Copy link

musjj commented Feb 21, 2024

It'd be nice if we can provide a custom command/script for the backend.

For example if you wanted to have a custom random transition with swww, you can specify a script to the config:

# Picks a random corner to start the transition from
swww img \
  -t $(shuf -n 1 <<<$'grow\nouter') \
  --transition-pos $(shuf -n 1 <<<$'top-left\ntop-right\nbottom-right\nbottom-left') \
  $1 # the passed image
@anufrievroman
Copy link
Owner

It's an interesting idea and the post_command option in config almost does that, except that waypaper will always issue its own command to change the wallpaper. So, the most elegant solution that I see is to introduce the possiblity to select None as backend, and then waypaper will work just as filepicker and your post_command script will do all the job.

@anufrievroman anufrievroman added the enhancement New feature or request label Feb 23, 2024
anufrievroman added a commit that referenced this issue May 17, 2024
This is to use waypaper as a filepicker, as explained in #33
@anufrievroman
Copy link
Owner

Implemented this in main. Now, if you chose none backend, the waypaper will not try to issue a backend command but only execute a post_command from config, there you can write any script that uses $wallpaper variable.

anufrievroman added a commit that referenced this issue May 17, 2024
Related to issue #33
@anufrievroman
Copy link
Owner

I'll consider this issue resolved then.

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

No branches or pull requests

2 participants