Skip to content

Instantly share code, notes, and snippets.

@kontez
Forked from rawsh/lock.sh
Last active March 25, 2017 22:57
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save kontez/965b74cf14bcaa80af8015a7927f16e8 to your computer and use it in GitHub Desktop.
Simple lock script preserving background with xwobf and i3lock.

Here is the result:

What you need:

  • i3lock-color
  • xwobf
  • scrot
#!/bin/bash
scrot /tmp/screen.png
xwobf -s 11 /tmp/screen.png
i3lock --textcolor=ffffff00 --insidecolor=ffffff1c --ringcolor=ffffff3e --linecolor=ffffff00 --keyhlcolor=00000080 --ringvercolor=00000000 --insidevercolor=0000001c --ringwrongcolor=00000055 --insidewrongcolor=0000001c -i /tmp/screen.png
rm /tmp/screen.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment