Initial commit
This commit is contained in:
commit
153479352c
18 changed files with 3402 additions and 0 deletions
39
bin/lock
Executable file
39
bin/lock
Executable file
|
@ -0,0 +1,39 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo RELOADAGENT | gpg-connect-agent
|
||||
ssh-add -D
|
||||
|
||||
if [ "$(xrandr | grep 3440x1440)" != "" ]; then
|
||||
SCALE="100%"
|
||||
DIR=$(echo -e "+800+0\n-800+0" | sort -R | head -1)
|
||||
else
|
||||
SCALE="75%"
|
||||
DIR=$(echo -e "+500+0\n-500+0" | sort -R | head -1)
|
||||
fi
|
||||
|
||||
IMAGE=/tmp/screenlock.png
|
||||
|
||||
IMG="$HOME/.LinuxConfig/imgs/"
|
||||
IMG=$IMG$(ls $IMG | sort -R | head -1)
|
||||
|
||||
echo $DIR
|
||||
|
||||
maim -m 1 $IMAGE
|
||||
convert $IMAGE -filter gaussian -blur 0x9 \
|
||||
-gravity center -matte \
|
||||
"$IMG[$SCALE]" -geometry $DIR -composite \
|
||||
~/.LinuxConfig/lock.png -composite \
|
||||
-font Noto-Sans-CJK-JP-Regular -pointsize 25 -fill 'rgba(255,255,255,0.85)' -draw "text 0,150 'Enter password'" \
|
||||
-font Noto-Sans-CJK-JP-Regular -pointsize 20 -fill 'rgba(255,255,255,0.60)' -draw "text 0,200 'パスワードを入力する'" \
|
||||
$IMAGE
|
||||
|
||||
i3lock \
|
||||
--textcolor=00000000 \
|
||||
--separatorcolor=00000000 --linecolor=00000000 \
|
||||
--keyhlcolor=22cc2288 --bshlcolor=cc222288 \
|
||||
--insidecolor=33333344 --ringcolor=aaaaaa88 \
|
||||
--insidevercolor=55555544 --ringvercolor=cccccc88 \
|
||||
--insidewrongcolor=cc222244 --ringwrongcolor=cc222288 \
|
||||
-eni $IMAGE
|
||||
|
||||
rm $IMAGE
|
Loading…
Add table
Add a link
Reference in a new issue