Skip to content

Commit

Permalink
add: padlock
Browse files Browse the repository at this point in the history
  • Loading branch information
beaussan committed Nov 14, 2017
1 parent e72773f commit 7f1a4fa
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
1 change: 1 addition & 0 deletions default.conf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
~/scripts: general/scripts
~/bin: general/bin
~/.i3/config: general/i3config
~/.i3/pad.png: general/pad.png
~/.compton.conf: general/compton.conf
~/.yaourtrc: general/yaourt
~/.gcalclirc: general/gcalclirc
Expand Down
Binary file added general/pad.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 18 additions & 5 deletions general/scripts/lock.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,25 @@
#!/bin/bash

cd "/home/beaussan/.config/i3/"
cd "/home/beaussan/.i3/"

import -silent -window root lock.png;
icon="$HOME/.i3/pad.png"

tmpbg='/tmp/screen.png'

# (( $# )) && { icon=$1; }

scrot "$tmpbg"
notify-send --urgency low "Locking..."
convert lock.png -scale 25% -blur 0x20 -scale 400% lock.png;
convert "$tmpbg" -scale 10% -scale 1000% "$tmpbg"
convert "$tmpbg" "$icon" -gravity center -composite -matte "$tmpbg"
i3lock -i "$tmpbg" --textcolor=eee8d5ff --ringcolor=07364295 --keyhlcolor=268bd295 --bshlcolor=dc322f95 --insidecolor=002b3695 --insidevercolor=268bd295 --ringvercolor=268bd295 --insidewrongcolor=dc322f95 --ringwrongcolor=dc322f95 --linecolor=07364295 --separatorcolor=07364295;


#import -silent -window root lock.png;
#notify-send --urgency low "Locking..."
#convert lock.png -scale 25% -blur 0x20 -scale 400% lock.png;
#convert lock.png -scale 10% -scale 1000% lock.png;
composite -gravity center pad.png lock.png lock.png;
#composite -gravity center pad.png lock.png lock.png;

i3lock -i lock.png --textcolor=eee8d5ff --ringcolor=07364295 --keyhlcolor=268bd295 --bshlcolor=dc322f95 --insidecolor=002b3695 --insidevercolor=268bd295 --ringvercolor=268bd295 --insidewrongcolor=dc322f95 --ringwrongcolor=dc322f95 --linecolor=07364295 --separatorcolor=07364295;
#i3lock -i lock.png --textcolor=eee8d5ff --ringcolor=07364295 --keyhlcolor=268bd295 --bshlcolor=dc322f95 --insidecolor=002b3695 --insidevercolor=268bd295 --ringvercolor=268bd295 --insidewrongcolor=dc322f95 --ringwrongcolor=dc322f95 --linecolor=07364295 --separatorcolor=07364295;

0 comments on commit 7f1a4fa

Please sign in to comment.