Skip to content

Instantly share code, notes, and snippets.

@DrSensor
Created November 18, 2020 21:46
Show Gist options
  • Save DrSensor/962a0d297f9dea07546e79410a50bede to your computer and use it in GitHub Desktop.
Save DrSensor/962a0d297f9dea07546e79410a50bede to your computer and use it in GitHub Desktop.
My Lockscreen
#!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
#!/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