Skip to content

Integrating Videobackground with WindowMaker

Gethyn ThomasQuail edited this page Aug 4, 2015 · 3 revisions

Thanks to the ingenious menu system within WindowMaker, it's extremely easy to integrate this script and change video backgrounds with ease!

#Customize Config

Firstly, you'll want to edit the ".xyscripts" to your liking. If you like the default options then move on. Here's the tidbit you will want to look at: https://github.com/Xylemon/Window-Manager-Scripts/blob/master/.xyscripts#L62

#The Integration

OK, if you're all good to go here's what we'll do. For this tutorial, I'm going to use the default "Appearance > Background" sub-menu, but you can obviously create it wherever you want. Under the "Background" sub-menu, add a "Directory Contents", and rename it to "Videos" (or whatever you desire). Put "videobackground" in the "Command to Open Files" field, then put your location of video backgrounds (i.e. ~/Videos/Background) in the "Directories with Files" field. You can also check "Strip extensions from file names" if desired. Save your changes and there you go! Simple way to choose a new video background!

#Stopping Video Backgrounds

The above method has one problem, you need to kill the video player before changing the background. Here's a simple way to do so. Under the "Backgrounds" sub-menu again, add "Run Program" and call it "Stop Video Background". In the "Program to Run field", enter "pkill xwinwrap". You can also add a keyboard bind to make the process easier. Once again, click save and now you have an easy way to stop the video background.

Hope you find this helpful! -Gethyn.

Clone this wiki locally