Francesco149 / weebp

free and open-source wallpaper engine, set any window as your wallpaper
The Unlicense
547 stars 60 forks source link

Simple usage example? #6

Open Stefan2142 opened 5 years ago

Stefan2142 commented 5 years ago

Hey, thanks for making this but im struggling on how to run it. Can you provide a simple usage guideline with using mpv and wp? Thanks!

Francesco149 commented 5 years ago

if you have both wp and mpv installed you should be able to do, from a powershell or cmd window

wp run mpv --terminal=no --loop=inf "C:\some_video.mp4"
wp add --wait --fullscreen --class mpv

if it can't start mpv and you're not familiar with editing environment variables to get mpv in your PATH you can just copy the mpv executable to wp's folder

you can then run this automatically at boot by creating a .bat file in your autorun folder

to open your autorun folder, do WIN+R (or go to start and click run...) and type shell:startup then press enter

now you can create a .bat file here containing exactly the commands you just executed

wp run mpv --terminal=no --loop=inf "C:\some_video.mp4"
wp add --wait --fullscreen --class mpv

save it and reboot to test

Stefan2142 commented 5 years ago

It works. I have everything set up but just couldnt figure out the order of commnads. Thanks a lot for this!!! I would just add these two lines at the end (when user doesnt want to use it anymore): taskkill /im mpv.exe /f and "wp killall for killing the process of them two

AndroidDeveloperLB commented 5 years ago

Is there an easy way to closing it? And to play without sound? Does it take CPU while it's not visibly shown (meaning when some window takes full screen, for example) ?

Francesco149 commented 5 years ago

mpv --list-options shows you all the possible options you can pass to mpv

to play with no audio you would pass --audio=no

it will always take some cpu but mpv is a very lightweight player. I'm not sure if it actually renders offscreen but i doubt it cause i can play games with it running and it doesn't affect performance. I'd worry more about memory usage if you're on a very low-end machine.

to kill captured windows you can use wp killall -i 0, or read the output of wp to learn about more specific ways to list and kill captured windows. you can also of course kill the mpv process from task manager

relitt commented 5 years ago

Can you tell me how to put an application with which you can interact, for example, a Unity game. https://camo.githubusercontent.com/96c70d8eed37cbe206533810421020fed2e0d399/68747470733a2f2f692e696d6775722e636f6d2f487179317558322e676966 like this

Francesco149 commented 5 years ago

@tewarami there's an example in the readme with chrome, you would just instruct to wp match the correct window title or class

https://github.com/Francesco149/weebp#recipe-automatic-wallpaper-set-up

anyway I'll close this issue when I add more basic examples to README

afrolovs commented 5 years ago

Hello! I wanted to use your program to put a website with notes (for example, milanote) on the desktop, but the "browser on desktop" does not accept any input from the keyboard or mouse. Any ideas?

Francesco149 commented 5 years ago

@theonlytsar that's not supported. at the moment it only passes through cursor movement (but not clicks). if i were to add keyboard support it would be tricky to have a simple way to switch focus to the captured window