Git Product home page Git Product logo

i3lock-multiimage's Introduction

i3lock-multiimage

Uses i3lock to display different image on each monitor

HOW TO USE

cd ~
git clone https://github.com/ginkooo/i3lock-multiimage
cd i3lock-multiimage
python3 -m pip install --user -r requirements

change FOLDER in config.py to path of your script if you want to run it without doing next steps

Run

sudo ./setup.py

change FOLDER to new location

Then just lock the screen by typing

lock

I recommend binding key combination to lock in your shortcut manager

CHANGE IMAGES

You can change displayed images by replacing pngs in images folder

SET WHICH IMAGE DISPLAYS ON WHICH MONITOR

To achieve this, you must name images in a right alphabetical order, and match the order with xrandr output. For example:

You have three images and three monitors.

Images are:

a.png, b.png, c.png

Output from xrandr is like:

HDMI-0 connected
[...]
VGA-0 connected
[...]
HDMI-1 connected
[...]

So HDMI-0 is first, VGA-0 is second and HDMI-1 is third.

a.png would be on HDMI-0,

b.png would be on VGA-0,

c.png would be on HDMI-1

REQUIREMENTS

Python3+

i3lock (https://github.com/i3/i3lock)

Pillow library for Python3

WHAT WORKS

  • Display image on inline-positioned monitors (same height)
  • Not inline aligned monitors, rotated monitors etc.

WHAT DOESN'T WORK

  • Image count different than monitor count

TODO

  • Reuse already generated image
  • Optional "Type in your password"

i3lock-multiimage's People

Contributors

ginkooo avatar

Watchers

James Cloos avatar  avatar

Forkers

kaktussss

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.