LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 10-07-2017, 04:15 PM   #1
linux1021
Member
 
Registered: Jun 2016
Location: Washington State, USA
Posts: 32

Rep: Reputation: Disabled
Lightbulb Play any video as a screensaver with mpv and xscreensaver trick/hack


Hi! Everybody

I did a search on google an a little research, on playing any videos as a screensaver. I was getting bored with the usual ones. So, I found this little trick/hack, I did not know where specifically to put this in the forum other than here. Okay, here it goes.

1) Create a folder for your video files only in your home folder/directory, make sure you do not ERASE this folder.

2) Videos have to be 1 minute or less in duration, that means, you will have to edit the videos to 1 minute or less on a video editor.

3) Open .xscreensaver with your text editor of your choice, you do not have to be root administrator, the file is in your home folder, like this

"xed /home/Screensaver videos

And insert this lines in the programs: section like this:

programs: \
Best: "ScreenSaver Videos" mpv --shuffle --really-quiet --no-audio \
--fs --video-aspect=16:9 \
--no-stop-screensaver \
--wid=$XSCREENSAVER_WINDOW \
$HOME/"ScreenSaver Videos"/* \n\

Save the file and log out and log in again, sometimes it take a reboot to set it just in case.

I'll try to put a screenshot of mine, if I can, see screenshot attached to this. The "Screesaver videos" is the folder for the screen videos to play.

Okay, Have fun!
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2017-10-07_12:51:47-1024x1024.png
Views:	9
Size:	142.5 KB
ID:	26064  
 
Old 10-08-2017, 04:28 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 6,791
Blog Entries: 3

Rep: Reputation: 1633Reputation: 1633Reputation: 1633Reputation: 1633Reputation: 1633Reputation: 1633Reputation: 1633Reputation: 1633Reputation: 1633Reputation: 1633Reputation: 1633
if you don't like xscreensaver, there's also: https://github.com/9wm/xss
 
Old 10-08-2017, 07:31 PM   #3
linux1021
Member
 
Registered: Jun 2016
Location: Washington State, USA
Posts: 32

Original Poster
Rep: Reputation: Disabled
Cool

Quote:
Originally Posted by ondoho View Post
if you don't like xscreensaver, there's also: https://github.com/9wm/xss
Hi! ondoho

Thanks for the note/reply. Yes, if you want to fiddle around with commands from scratch then yes, but xscreensaver is already giving you at least 90% of the steps/tools for making it do this faster. Thanks for the hint/note about this site and program tho. Have fun my friend.
 
Old 10-11-2017, 10:55 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 17,101

Rep: Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552
Thanks for the information.
 
  


Reply

Tags
desktop, laptop, screensaver


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: MPV 0.17.0 Open-Source Video Player Adds a Direct3D11 Video Acceleration Decoder LXer Syndicated Linux News 0 04-12-2016 06:51 AM
[SOLVED] Is there a trick to get webcollage working on Xscreensaver? ricky_cardo Slackware 5 01-20-2011 03:03 PM
chbg as xscreensaver hack Toadman Linux - Software 0 05-15-2009 09:03 PM
gnome-screensaver vs. xscreensaver littletom Linux - Software 4 04-15-2009 07:31 PM
Write xscreensaver photo hack? pwc101 Programming 1 10-30-2007 07:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 10:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration