Update lock script, moved scripts to .scripts folder

This commit is contained in:
Riyyi
2017-12-29 18:04:04 +01:00
parent 4a0a147435
commit 3074fdaba4
6 changed files with 31 additions and 12 deletions
-11
View File
@@ -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
+31
View File
@@ -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
-1
View File
@@ -6,7 +6,6 @@ if [ "$(dirname $0)" != "." ]; then
fi
FILES=$(find . \( -path ./.git -o \
-path ./scripts -o \
-path ./dotfiles.sh \) -prune -o -type f -print)
if [ "$1" == "help" ] || [ "$1" == "" ]; then