Created
November 18, 2020 21:46
-
-
Save DrSensor/962a0d297f9dea07546e79410a50bede to your computer and use it in GitHub Desktop.
My Lockscreen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!bin/sh | |
maim -x $1 \ | |
| convert png:- bmp:- \ | |
| sox -r 48k -c 1 -e u-law -t raw /dev/stdin -t raw /dev/stdout trim 0 100s \ | |
: treble -30 1k \ | |
| convert bmp:- rgb:- \ | |
| i3lock --image /dev/stdin --raw 1920x1080:rgb | |
# Other terms: Glitchart, Databender, Obfuscate Image |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
max() { # have some bugs | |
xrandr --current \ | |
| grep '*' | uniq | awk '{print $1}' \ | |
| cut -d 'x' `([ $1 = 'W' ] && echo '-f1') || ([ $1 = 'H' ] && echo '-f2')` \ | |
| sort -n | tail -1 | |
} | |
convert $1 -resize `max W`x`max H` rgb:- | \ | |
i3lock --raw `max W`x`max H`:rgb --image /dev/stdin \ | |
--ignore-empty-password \ | |
--show-failed-attempts \ | |
--pointer default \ | |
--tiling | |
# --color 565656 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment