Update lock script, moved scripts to .scripts folder
This commit is contained in:
@@ -1,11 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
xset s 30 30
|
|
||||||
|
|
||||||
icon="$HOME/Pictures/lock.png"
|
|
||||||
tmpbg='/tmp/screen.png'
|
|
||||||
|
|
||||||
scrot "$tmpbg"
|
|
||||||
convert "$tmpbg" -scale 10% -scale 1000% "$tmpbg"
|
|
||||||
convert "$tmpbg" "$icon" -gravity center -composite -matte "$tmpbg"
|
|
||||||
i3lock --nofork -u -i "$tmpbg"; xset s off
|
|
||||||
Executable
+31
@@ -0,0 +1,31 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
ICON="$HOME/Pictures/lock.png"
|
||||||
|
TMPBG='/tmp/screen.png'
|
||||||
|
|
||||||
|
revert() {
|
||||||
|
xset dpms 0 0 0
|
||||||
|
}
|
||||||
|
|
||||||
|
trap revert HUP INT TERM
|
||||||
|
xset +dpms dpms 30 30 30
|
||||||
|
|
||||||
|
scrot "$TMPBG"
|
||||||
|
convert "$TMPBG" -scale 10% -scale 1000% "$TMPBG"
|
||||||
|
convert "$TMPBG" "$ICON" -gravity center -composite -matte "$TMPBG"
|
||||||
|
|
||||||
|
i3lock -n -i "$TMPBG" -e \
|
||||||
|
--textcolor=00000000 \
|
||||||
|
--insidecolor=00000000 \
|
||||||
|
--insidevercolor=00000000 --insidewrongcolor=00000000 \
|
||||||
|
--ringcolor=00000000 \
|
||||||
|
--ringvercolor=FFFFFFC0 --ringwrongcolor=DA2825C0 \
|
||||||
|
--keyhlcolor=FFFFFFC0 --bshlcolor=DA2825C0 \
|
||||||
|
--linecolor=00000000 --separatorcolor=00000000 \
|
||||||
|
-k \
|
||||||
|
--timesize=64 --datesize=24 \
|
||||||
|
--timestr="%I:%M %p" --datestr="%A, %B %e" \
|
||||||
|
--timepos="ix-200:iy-250" --datepos="ix-200:iy-210" \
|
||||||
|
--timecolor=FFFFFFC0 --datecolor=FFFFFFC0
|
||||||
|
|
||||||
|
revert
|
||||||
@@ -6,7 +6,6 @@ if [ "$(dirname $0)" != "." ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
FILES=$(find . \( -path ./.git -o \
|
FILES=$(find . \( -path ./.git -o \
|
||||||
-path ./scripts -o \
|
|
||||||
-path ./dotfiles.sh \) -prune -o -type f -print)
|
-path ./dotfiles.sh \) -prune -o -type f -print)
|
||||||
|
|
||||||
if [ "$1" == "help" ] || [ "$1" == "" ]; then
|
if [ "$1" == "help" ] || [ "$1" == "" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user