Giter Club home page Giter Club logo

i3lock-fancy-multimonitor's Introduction

i3lock-fancy-multimonitor

The idea for this project was shamelessly copied from meskarune's i3lock-fancy.

It uses scrot to take a screenshot of the desktop, then ImageMagick blurs the image and adds a lock icon and text.

By using information from xrandr and basic math, this script supports multiple monitor setups, displaying the icon and text centered on all screens.

The lock icon is different from the original project, with a transparent black circle around it. The text is also an image, making it easier to customize (and to put it at the correct position). Finally, it uses vanilla i3lock instead of i3lock-color. The author of i3lock-color is not maintaining it anymore. If you want to customize the colors of i3lock, the recommended version of i3lock-color is this one, maintained by Chris Guillott.

Installation

Make sure you have all the dependencies:

sudo apt-get install scrot imagemagick i3lock

Copy the lock script along with the images to some place on your system (e.g.: the i3 folder) and give it execution permission:

git clone https://github.com/guimeira/i3lock-fancy-multimonitor.git
cp -r i3lock-fancy-multimonitor ~/.i3
chmod +x ~/.i3/i3lock-fancy-multimonitor/lock

Create a key binding on your i3 config file (in this example I'm using $mod+p):

echo "bindsym \$mod+p exec /home/<your username>/.i3/i3lock-fancy-multimonitor/lock" >> ~/.i3/config

Now reload the i3 configuration file. By default, the key binding is $mod+Shift+c.

Command line parameters

-n or --no-text: hide the "Type password to unlock" text.

-p or --pixelate: pixelate the background instead of blurring it. Might be faster.

-b or --blur: the blur amount. See http://www.imagemagick.org/Usage/blur/#blur_args for valid values.

i3lock-fancy-multimonitor's People

Contributors

guimeira avatar ronalddijks avatar steve-mr avatar stunkymonkey avatar

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.