-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
19 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
|