forked from Raymo111/i3lock-color
-
Notifications
You must be signed in to change notification settings - Fork 0
/
i3lock-bash
126 lines (122 loc) · 2.73 KB
/
i3lock-bash
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
#!/usr/bin/env bash
# bash completion for i3lock-color
_i3lock() {
local cur="${COMP_WORDS[COMP_CWORD]}"
local last="${COMP_WORDS[COMP_CWORD - 1]}"
local -a options=(
"--version -v"
"--nofork -n"
"--beep -b"
"--no-unlock-indicator -u"
"--image -i"
"--raw"
"--color -c"
"--tiling -t"
"--centered -C"
"--fill -F"
"--max -M"
"--scale -L"
"--pointer -p"
"--ignore-empty-password -e"
"--show-failed-attempts"
"--debug"
# i3lock-color OPTIONS
"--screen -S"
"--blur -B"
"--clock --force-clocl -k"
"--indicator"
"--radius"
"--ring-width"
# Colors
"--inside-color"
"--ring-color"
"--insidever-color"
"--ringver-color"
"--insidewrong-color"
"--ringwrong-color"
"--line-color"
"--line-uses-inside"
"--line-uses-ring"
"--keyhl-color"
"--bshl-color"
"--separator-color"
"--verif-color"
"--wrong-color"
"--modif-color"
"--layout-color"
"--time-color"
"--date-color"
"--greeter-color"
# Text
"--time-str"
"--date-str"
"--verif-text"
"--wrong-text"
"--keylayout"
"--noinput-text"
"--lock-text"
"--lockfailed-text"
"--greeter-text"
"--no-modkey-text"
# Align
"--time-align --date-align --layout-align --verif-align --wrong-algin --modif-align --greeter-align"
# Outline
"--timeoutlinecolor --dateoutlinecolor --layoutoutlinecolor --verifoutlinecolor --wrongoutlinecolor --modifoutline-color --greeteroutlinecolor"
# Fonts
"--time-font --date-font --layout-font --verif-font --wrong-font --greeter-font"
# Size
"--timesize --datesize --layoutsize --verifsize --wrongsize --greetersize"
# Outline width
"--timeoutlinewidth --dateoutlinewidth --layoutoutlinewidth --verifoutlinewidth --wrongoutlinewidth --modifieroutline-width --greeteroutlinewidth"
# Position
"--ind-pos"
"--time-pos"
"--date-pos"
"--greeter-pos"
# Media keys
"--pass-media-keys"
"--pass-screen-keys"
"--pass-power-keys"
"--pass-volume-keys"
"--custom-key-commands"
"--cmd-brightness-up"
"--cmd-brightness-down"
"--cmd-media-play"
"--cmd-media-pause"
"--cmd-media-stop"
"--cmd-media-next"
"--cmd-media-prev"
"--cmd-audio-mute"
"--cmd-volume-up"
"--cmd-volume-down"
"--cmd-mic-mute"
"--cmd-power-down"
"--cmd-power-off"
"--cmd-power-sleep"
# Bar mode
"--bar-indicator"
"--bar-direction"
"--bar-orientation"
"--bar-step"
"--bar-max-height"
"--bar-base-width"
"--bar-color"
"--bar-periodic-step"
"--bar-pos"
"--bar-count"
"--bar-total-width"
# Extra configs
"--redraw-thread"
"--refresh-rate"
"--composite"
"--no-verify"
"--slideshow-interval"
"--slideshow-random-selection"
)
local args=""
for i in "${options[@]}"; do
args+="$i "
done
COMPREPLY=( $(compgen -W "${args}" -- ${cur}) )
}
complete -F _i3lock i3lock