Skip to content

Commit 6f7d2bc

Browse files
committed
Add help messages
1 parent 6676f04 commit 6f7d2bc

File tree

4 files changed

+19
-0
lines changed

4 files changed

+19
-0
lines changed

Diff for: completions/bash/swaylock

+4
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ _swaylock()
7878
--text-color
7979
--text-ver-color
8080
--text-wrong-color
81+
--text-clear
82+
--text-caps-lock
83+
--text-ver
84+
--text-wrong
8185
--tiling
8286
--version
8387
)

Diff for: completions/fish/swaylock.fish

+4
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,9 @@ complete -c swaylock -l text-clear-color --description "Sets the colo
5151
complete -c swaylock -l text-color --description "Sets the color of the text."
5252
complete -c swaylock -l text-ver-color --description "Sets the color of the text when verifying."
5353
complete -c swaylock -l text-wrong-color --description "Sets the color of the text when invalid."
54+
complete -c swaylock -l text-clear --description "Sets the text when cleared."
55+
complete -c swaylock -l text-caps-lock --description "Sets the text when Caps Lock is active."
56+
complete -c swaylock -l text-ver --description "Sets the text when verifying."
57+
complete -c swaylock -l text-wrong --description "Sets the text when invalid."
5458
complete -c swaylock -l tiling -s t --description "Same as --scaling=tile."
5559
complete -c swaylock -l version -s v --description "Show the version number and quit."

Diff for: completions/zsh/_swaylock

+4
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,9 @@ _arguments -s \
5555
'(--text-color)'--text-color'[Sets the color of the text]:color:' \
5656
'(--text-ver-color)'--text-ver-color'[Sets the color of the text when verifying]:color:' \
5757
'(--text-wrong-color)'--text-wrong-color'[Sets the color of the text when invalid]:color:' \
58+
'(--text-clear)'--text-clear'[Sets the text when cleared]:text:' \
59+
'(--text-caps-lock)'--text-caps-lock'[Sets the text when Caps Lock is active]:text:' \
60+
'(--text-ver)'--text-ver'[Sets the text when verifying]:text:' \
61+
'(--text-wrong)'--text-wrong'[Sets the text when invalid]:text:' \
5862
'(--tiling -t)'{--tiling,-t}'[Same as --scaling=tile]' \
5963
'(--version -v)'{--version,-v}'[Show the version number and quit]'

Diff for: main.c

+7
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,13 @@ static void set_default_colors(struct swaylock_colors *colors) {
539539
.verifying = 0x3300FFFF,
540540
.wrong = 0x7D3300FF,
541541
};
542+
colors->text = (struct swaylock_colorset){
543+
.input = 0xE5A445FF,
544+
.cleared = 0x000000FF,
545+
.caps_lock = 0xE5A445FF,
546+
.verifying = 0x000000FF,
547+
.wrong = 0x000000FF,
548+
};
542549
}
543550

544551
static void set_default_texts(struct swaylock_texts *texts) {

0 commit comments

Comments
 (0)