1
0
Fork 0
dotfiles/.local/bin/scripts/lock
2025-11-17 23:50:03 +03:00

65 lines
1.4 KiB
Bash
Executable file

#!/bin/bash
pkill -0 picom || {
picom --config "$HOME/.config/picom.conf" &
disown -h %%
export START_PICOM=1
}
blank='00000000'
hl='23232340'
hl_red='5c222240'
fg='#a0a0a0'
i3lock \
-F \
-i "$HOME/.local/share/wallpaper/wallpaper_blur.png" \
-c '00000000' \
--clock \
--date-color=$fg \
--time-color=$fg \
--verif-color=$fg \
--wrong-color=$fg \
--bshl-color=$hl \
--inside-color=$blank \
--insidever-color=$blank \
--insidewrong-color=$blank \
--keyhl-color=$hl \
--line-uses-ring \
--ring-color=$blank \
--ringver-color=$blank \
--ringwrong-color=$hl_red \
--separator-color=$blank \
--date-str='%A %m/%d' \
--time-str='%H:%M' \
--time-size=82 \
--date-size=18 \
--wrong-size=56 \
--date-pos 'tx:ty+36' \
--verif-text='' \
--noinput-text='' \
--wrong-text='' \
--time-font="Mononoki Nerd Font Propo" \
--date-font="Mononoki Nerd Font Propo" \
--layout-font="Mononoki Nerd Font Propo" \
--verif-font="Mononoki Nerd Font Propo" \
--wrong-font="Mononoki Nerd Font Propo" \
--bar-color $blank \
--bar-base-width 2080 \
--bar-max-height 2080 \
--bar-step 0 \
--bar-count 1 \
--bar-periodic-step 2080 \
--bar-indicator \
[ -n "$START_PICOM" ] && {
echo 'start'
(
for pid in $(pidof i3lock); do
tail --pid "$pid" -f /dev/null &
done
wait
pkill -INT picom
) &
disown -h %%
}