Code Monkey home page Code Monkey logo

i3-lock-awesome's Introduction

i3-lock-awesome

This script takes a screenshot of your desktop and applies various image proceesing to "blur" out the background and sets it as the i3lock background.

Works with multiple monitors.

Video: coming soon

The main dependancies for this script are scrot imagemagick i3lock
And if you want notifications to work some form of these should be installed notify-send libnotify notification-daemon since the script uses notify-send to display which image manipulation will be used.

By default I use dash for the shell but you can change it to bash by changing the first line to
#!/usr/bin/env bash

When you execute the script currently one out of the 14 different presets are selected at random, you can easily add your own by extending the case statement like so

number=$(shuf -i1-15 -n1)
....
	13)
		convert /tmp/screen.png -spread 20 -paint 4  -modulate 190,80,260 /tmp/screen.png
		;;	
	14)
		# your custom manipulation
		;;				
	*)
      convert /tmp/screen.png -spread 30 -paint 5 -modulate 200,200,350 /tmp/screen.png
        ;;	
esac

Usage

clone repo and make sure the script is executable chmod +x lockscreen.sh and move it into an appropriate location mine is in ~/scrips/
Then use your display manager to set up a keybinding I use i3-gaps and have this in my config

bindsym $mod+Mod1+Shift+Ctrl+l exec ~/scrips/lockscreen.sh &
bindsym $mod+Mod1+Shift+Ctrl+equal exec ~/scrips/lockscreen.sh && systemctl suspend

The second binding is if you want to unlock your screen after suspend since by default systemctl suspend just leaves everything open after resuming.

i3-lock-awesome's People

Contributors

artiomsu avatar

Stargazers

 avatar

Watchers

 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.