This commit is contained in:
parent
d93f63cf82
commit
c449dfcb5f
13 changed files with 105 additions and 58 deletions
65
.local/bin/scripts/lock
Executable file
65
.local/bin/scripts/lock
Executable file
|
|
@ -0,0 +1,65 @@
|
|||
#!/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 %%
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue