2022-02-06 07:15:14 +00:00
|
|
|
#!/bin/zsh
|
2022-08-22 22:40:57 +00:00
|
|
|
which i3lock >/dev/null 2>&1 || {
|
|
|
|
notify-send 'i3lock-color' 'could not find installation of i3lock'
|
|
|
|
}
|
|
|
|
# note: requires i3lock-color
|
|
|
|
|
2020-09-18 04:12:05 +00:00
|
|
|
INSIDE_VER='001020'
|
|
|
|
RING_VER='004040'
|
|
|
|
|
|
|
|
INSIDE_WRONG='200010'
|
|
|
|
RING_WRONG='4a0020'
|
|
|
|
|
|
|
|
INSIDE='002010'
|
|
|
|
RING='103020'
|
|
|
|
LINE='8888ff'
|
|
|
|
KEYDOWN='44ff44'
|
|
|
|
KEYREMOVE='4444ff'
|
|
|
|
|
|
|
|
TIME='aaaaaa'
|
|
|
|
DATE='888888'
|
|
|
|
|
2022-02-06 07:15:14 +00:00
|
|
|
i3lock \
|
|
|
|
-e \
|
|
|
|
--pass-screen-keys --pass-media-keys --pass-volume-keys --pass-power-keys \
|
|
|
|
-B 6 \
|
|
|
|
--force-clock \
|
|
|
|
--insidever-color=$INSIDE_VER --ringver-color=$RING_VER --verif-color=$INSIDE_VER \
|
|
|
|
--insidewrong-color=$INSIDE_WRONG --ringwrong-color=$RING_WRONG --wrong-color=$INSIDE_WRONG \
|
|
|
|
--inside-color=002010 --ring-color=103020 \
|
|
|
|
--line-color=$LINE \
|
|
|
|
--time-color=$TIME --date-color=$DATE \
|
|
|
|
--keyhl-color=$KEYDOWN --bshl-color=$KEYREMOVE \
|
2022-08-22 22:40:57 +00:00
|
|
|
|| notify-send 'i3lock-color' 'something went wrong; unable to lock' \
|
2020-09-18 04:12:05 +00:00
|
|
|
;
|