Git Product home page Git Product logo

glitchlock's Introduction

 ┏━┓┳  o┏┓┓┏━┓┳ ┳┳  ┏━┓┏━┓┳┏ 
 ┃ ┳┃  ┃ ┃ ┃  ┃━┫┃  ┃ ┃┃  ┣┻┓
 ┇━┛┇━┛┇ ┇ ┗━┛┇ ┻┇━┛┛━┛┗━┛┇ ┛

glitchlock: a glitch art themed randomized lockscreen. powered by i3lock-color.

glitchlock preview

(note, the lock screen IS animated, but is also slow. Takes ~5 seconds on average to run on an intel core 2 duo p8400, can lower glitches count, or other performance improvements welcomed)

table of contents

about (original)

i do glitch art for fun. i was messing around w/ one of my shell scripts and thought: this would make a cool lockscreen! after a bit of research and refactoring here we are.

about (fork)

creates a number of images, that can be used in a slideshow configuration to make the screen look like it's in fact glitching out.

removed GLITCHICON.

credits to reddit users ----E---- and inu7el for some ideas borrowed in this script (slideshow & dd efficiency respectively)

how it works

the script takes a screenshot, then datamoshes a slideshow of it.

security

this lockscreen has the potential for information leakage, since it uses a screenshot of your active screen. i made this for fun and personal use, please take care and weigh your opsec and personal threat model before deciding to use this (consider pixelation?).

an example workaround would be setting up your screen very nicely w/o any secret info in it and taking a screenshot. then replace line #9 in the script (scrot /tmp/lock.png) with a command to {move,copy} your pre-setup screenshot into place (e.g. cp ~/lib/img/lock.png /tmp/lock.png) then let the script randomly glitch that image out everytime.

requirements

if you're using arch they can all be installed from the extra, community, and aur repos:

yay -S i3lock-color-git scrot imagemagick

* yay is an aur helper that wraps pacman.

customize

if called alone, the script will take a screenshot and glitch it. an example of calling the script on MOD4+ESC using sxhkd

# lockscreen
mod4 + Escape
 ~/bin/glitchlock

more

license

kopimi logo

kopimi! in the spirit of freedom of information, i encourage you to fork, modify, change, share, or do whatever you like with this project! ^c^v

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.