Skip to content

Commit

Permalink
ignore file, new lock, remove dwm config
Browse files Browse the repository at this point in the history
  • Loading branch information
luthes committed Dec 29, 2016
1 parent 16c8eac commit cca9b42
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#Ignore Swap Files
*.swp
Binary file added lock.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions newlock.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env bash
#Take a Screenshot
scrot /tmp/screen.png
#Pixelate the Screenshot
convert /tmp/screen.png -scale 10% -scale 1000% /tmp/screen.png
#Add Lock image, I think
convert /tmp/screen.png ~/.dotfiles/lock.png -gravity center -composite -matte /tmp/screen.png
#Lock the screen with the image.
i3lock -u -i /tmp/screen.png
#Remove temp image.
rm /tmp/screen.png
#Turn the screen off after a 60 second delay.
#I pulled this from some forum, but I don't think it cares if pgrep returns true
#or not...

#sleep 50; pgrep i3lock && xset dpms force off

0 comments on commit cca9b42

Please sign in to comment.