From c5fa89201d11942e51d66c7e19e36ae02126591f Mon Sep 17 00:00:00 2001 From: yutent Date: Fri, 14 Jul 2023 07:05:49 +0000 Subject: [PATCH] update --- home/local/bin/scripts/rofi_powermenu.sh | 4 ++-- home/local/bin/scripts/xlock.sh | 16 +++++++--------- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/home/local/bin/scripts/rofi_powermenu.sh b/home/local/bin/scripts/rofi_powermenu.sh index f2e121d..b93a729 100755 --- a/home/local/bin/scripts/rofi_powermenu.sh +++ b/home/local/bin/scripts/rofi_powermenu.sh @@ -29,11 +29,11 @@ confirm_run () { } xlock () { - ~/.local/bin/scripts/xlock.sh --lock + ~/.local/bin/scripts/xlock.sh } hibernate () { - xlock + mpc pause systemctl hibernate } diff --git a/home/local/bin/scripts/xlock.sh b/home/local/bin/scripts/xlock.sh index 8b40272..8b1af81 100755 --- a/home/local/bin/scripts/xlock.sh +++ b/home/local/bin/scripts/xlock.sh @@ -1,11 +1,9 @@ #!/bin/bash -if [ "$1" == "--lock" ]; then - i3lock -n -F -i $HOME/.local/share/xlock.png -k -e \ - --radius=180 --ring-width=16 --ring-color=64b5f6 --inside-color=64b5f680 \ - --verif-color=48c9b0 --wrong-color=fc7661 \ - --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-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" -fi +i3lock -n -F -i $HOME/.local/share/boy.png -k -e \ + --radius=128 --ring-width=16 --ring-color=64b5f6 --inside-color=64b5f680 \ + --verif-color=48c9b0 --wrong-color=fc7661 \ + --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-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"