Code Monkey home page Code Monkey logo

pml_reborn's Introduction

  _____    __  __   _                 _____    ______   ____     ____    _____    _   _ 
 |  __ \  |  \/  | | |               |  __ \  |  ____| |  _ \   / __ \  |  __ \  | \ | |
 | |__) | | \  / | | |               | |__) | | |__    | |_) | | |  | | | |__) | |  \| |
 |  ___/  | |\/| | | |               |  _  /  |  __|   |  _ <  | |  | | |  _  /  | . ` |
 | |      | |  | | | |____           | | \ \  | |____  | |_) | | |__| | | | \ \  | |\  |
 |_|      |_|  |_| |______|          |_|  \_\ |______| |____/   \____/  |_|  \_\ |_| \_|
                             ______                                                     
                            |______|                                                    

pml_reborn is a set of Bash scripts for displaying videos and images over the lockscreen based on mpv, meant for Dell machines on the 42 Paris campus.

Macs are currently unsupported - help is appreciated in order to get it working.

Credits

This work is based on some of Jérémy M.'s work - which is under the MIT License. Thanks Jérémy!

No code or binaries from mpv, streamlink, xdotool or youtube-dl are packaged with pml_reborn, but these tools are referenced in the code.

License

This work is licensed under the GPLv3 license. A copy of it is in the file LICENSE.

Installation

A Makefile is included to compile/download all the binaries necessary for pml_reborn to work. In order to download and setup everything, run make.

Configuration

Edit mpv.conf to change the placement of the video. Read more about MPV configuration files in here. By default, the video will take up the whole screen.

Run ./lockscreen true to lock the screen and ./lockscreen false to run the video player, but not lock the screen.

By default, the lockscreen uses a websocket server that allows you to change your videos on the fly as the program is running.

Setup https://github.com/denisebitca/pml_reborn_wss if you want this to work. You will have to put your websocket server's domain in the file ./domain, with the following format:

wss://[domain]:[port]

Your websocket server needs to be accessible to the Internet.

Edit ./lockscreen if you do not wish to use a websocket server - comments are present to show you what you need to remove in order to use it without a websocket server.

pml_reborn's People

Contributors

denisebitca avatar

Stargazers

 avatar

Watchers

 avatar

pml_reborn's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.