master
yutent 2023-07-14 07:05:49 +00:00 committed by GitHub
parent 81bda84178
commit c5fa89201d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 11 deletions

View File

@ -29,11 +29,11 @@ confirm_run () {
} }
xlock () { xlock () {
~/.local/bin/scripts/xlock.sh --lock ~/.local/bin/scripts/xlock.sh
} }
hibernate () { hibernate () {
xlock mpc pause
systemctl hibernate systemctl hibernate
} }

View File

@ -1,11 +1,9 @@
#!/bin/bash #!/bin/bash
if [ "$1" == "--lock" ]; then i3lock -n -F -i $HOME/.local/share/boy.png -k -e \
i3lock -n -F -i $HOME/.local/share/xlock.png -k -e \ --radius=128 --ring-width=16 --ring-color=64b5f6 --inside-color=64b5f680 \
--radius=180 --ring-width=16 --ring-color=64b5f6 --inside-color=64b5f680 \
--verif-color=48c9b0 --wrong-color=fc7661 \ --verif-color=48c9b0 --wrong-color=fc7661 \
--layout-size=32 --verif-size=32 --wrong-size=32 --greeter-size=32 \ --layout-size=32 --verif-size=32 --wrong-size=32 --greeter-size=32 \
--time-align 1 --date-align 1 --time-color=f2f5fc --date-color=ced6e0 \ --time-align 1 --date-align 1 --time-color=f2f5fc --date-color=ced6e0 \
--time-size=96 --date-size=64 --time-font="Raleway,sans-serif" --date-font="Raleway,sans-serif" \ --time-size=96 --date-size=64 --time-font="Raleway,sans-serif" --date-font="Raleway,sans-serif" \
--time-pos="100:h-300" --date-pos="100:h-200" --time-pos="100:h-300" --date-pos="100:h-200"
fi