-
Notifications
You must be signed in to change notification settings - Fork 0
/
blurlocker
executable file
·62 lines (54 loc) · 1.22 KB
/
blurlocker
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/sh
FG="$(xgetres foreground)"
BG="$(xgetres background)D0"
COLOR1="$(xgetres color1)"
COLOR2="$(xgetres color2)D0"
COLOR4="$(xgetres color4)"
COLOR10="$(xgetres color10)"
COLOR11="$(xgetres color11)"
TRANS="#00000000"
DATE_FORMAT="%a, %b %d"
TIME_FORMAT="%I:%M:%S"
FONT="monospace"
[ "$1" = "-n" ] || BLUR="--blur=3"
[ "$1" = "-h" ] && printf \
"Usage:
-n\t\t\"no blur\", allows you to blur the background using a compositor like picom
-h\t\tshow this help message\n" && exit 0
i3lock \
--color="$TRANS" \
--ignore-empty-password \
--pass-media-keys \
--pass-screen-keys \
--pass-volume-keys \
--pass-power-keys \
--indicator \
--nofork \
--clock \
--radius=120 \
--ring-width=14 \
--time-size=38 \
--time-str="$TIME_FORMAT" \
--date-size=18 \
--date-str="$DATE_FORMAT" \
--time-font="$FONT" \
--date-font="$FONT" \
--no-modkey-text \
--noinput-text="" \
--verif-text="" \
--wrong-text="" \
--lock-text="" \
--lockfailed-text="" \
--line-uses-ring \
--time-color="$FG" \
--date-color="$FG" \
--insidewrong-color="$BG" \
--insidever-color="$BG" \
--inside-color="$BG" \
--ringwrong-color="$COLOR1" \
--ringver-color="$COLOR4" \
--ring-color="$COLOR2" \
--separator-color="$FG" \
--keyhl-color="$COLOR10" \
--bshl-color="$COLOR11" \
$BLUR