Code Monkey home page Code Monkey logo

pimp_my_lock's Introduction

Pimp my lock

You've got to pimp my lock !

output1

Installation

If you are logged at 42Paris, you can skip to Usage at 42Paris section

make

Binary dependencies

  • head
  • column
  • sed
  • cat
  • mediainfo
  • tail
  • pqiv
  • mpv
  • xwininfo
  • grep
  • awk
  • wmctrl
  • xdotool
  • bash

General installation (Ubuntu)

sudo apt install coreutils bsdextrautils x11-utils sed mediainfo pqiv mpv grep wmctrl xdotool bash

If any file are missing during build, try using apt-file. See here

General usage

./pimp_my_lock.sh <path_to_media> [<x> <y> [<width> <height>]]

Usage at 42Paris

/sgoinfre/goinfre/Perso/jmaia/Public/pimp_my_lock_v2/pimp_my_lock <path_to_media> [<x> <y> [<width> <height>]]

Values can be percents or keywords. See help using /sgoinfre/goinfre/Perso/jmaia/Public/pimp_my_lock_v2/pimp_my_lock without arguments

How do I change the lock button to Pimp my lock at 42Paris ?

  • Create a script called "$HOME/pimp_my_lock_wrapper.sh" that will start Pimp my lock with your arguments
  • Disable old lock button: gnome-extensions disable [email protected]
  • Get Pimp my lock's button: cp -R /sgoinfre/goinfre/Perso/jmaia/Public/pimp_my_lock_v2/[email protected] ~/.local/share/gnome-shell/extensions/
  • Restart your session
  • Enable Pimp my lock's button: gnome-extensions enable [email protected]

A problem ?

If you have any problem, please open an issue on https://github.com/jerem-ma/pimp_my_lock/issues

Contributing

  1. Fork this repository (https://github.com/jerem-ma/pimp_my_lock/fork)
  2. Create a feature branch
  3. Do your things
  4. Open a Pull Request on v2 branch

pimp_my_lock's People

Contributors

jerem-ma avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

geekprod27

pimp_my_lock's Issues

Readme

Il est ou le readme ?

Pimp my Lock V2 ideas !

Pimp my lock will soon be recreated in a better version !
If you have any ideas of features you want in the new version, please put it in this issue !
If you want to contribute to the new version, do not hesitate to say hi in comments ! :)

Here are some of them :

  • ✅ Clean the code
  • ✅ Invert width and height to be consistent with the resolution given in the settings.
  • ✅ To be able to give position and size using percents or keyword (center, left, etc), instead of raw pixels
  • Add a way to put other medias (network stream, gif, etc)
  • To be able to see the password field through Pimp my Lock
  • ❌ To be able to add multiple videos ? (Chosen randomly ? Give a folder and the program choose automatically ?)
  • ❌ (42Paris only) : More portable way to click every second on the window (clean the folder architecture to avoid confusion ?)
  • ✅ Do something if VLC is not installed (install manually of something like this ?)
  • ❌ To be able to link an application to pimp my lock instead of vlc (be careful about danger of this)
  • ✅ Hide vlc logs, handle errors => Do something prettier
  • ✅ To be able to put only one value for size and use ratio of media to guess size (Zoom value ? width/height ?)
  • ❌ (42Paris) Mute computer when starting pimp_my_lock to avoid noisy sounds in clusters
  • ✅ Use transparent videos ?

(✅: Done, ❌: Dropped out)

Is there a way for the new lock screens?

42 Paris gradually changes ft_lock by a new lock called dm-tool lock. I tried changing the bash to try to make it compatible but it seems harder than I think.

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.