Skip to content

Instantly share code, notes, and snippets.

@rawsh
Created February 16, 2017 23:53
  • Star 5 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save rawsh/f391bf6aa040fcffb265237b406c5749 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 --separatorcolor=22222260 --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