File tree 4 files changed +19
-0
lines changed
4 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,10 @@ _swaylock()
78
78
--text-color
79
79
--text-ver-color
80
80
--text-wrong-color
81
+ --text-clear
82
+ --text-caps-lock
83
+ --text-ver
84
+ --text-wrong
81
85
--tiling
82
86
--version
83
87
)
Original file line number Diff line number Diff line change @@ -51,5 +51,9 @@ complete -c swaylock -l text-clear-color --description "Sets the colo
51
51
complete -c swaylock -l text-color --description " Sets the color of the text."
52
52
complete -c swaylock -l text-ver-color --description " Sets the color of the text when verifying."
53
53
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."
54
58
complete -c swaylock -l tiling -s t --description " Same as --scaling=tile."
55
59
complete -c swaylock -l version -s v --description " Show the version number and quit."
Original file line number Diff line number Diff line change @@ -55,5 +55,9 @@ _arguments -s \
55
55
'(--text-color)'--text-color'[Sets the color of the text]:color:' \
56
56
'(--text-ver-color)'--text-ver-color'[Sets the color of the text when verifying]:color:' \
57
57
'(--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:' \
58
62
'(--tiling -t)'{--tiling,-t}'[Same as --scaling=tile]' \
59
63
'(--version -v)'{--version,-v}'[Show the version number and quit]'
Original file line number Diff line number Diff line change @@ -539,6 +539,13 @@ static void set_default_colors(struct swaylock_colors *colors) {
539
539
.verifying = 0x3300FFFF ,
540
540
.wrong = 0x7D3300FF ,
541
541
};
542
+ colors -> text = (struct swaylock_colorset ){
543
+ .input = 0xE5A445FF ,
544
+ .cleared = 0x000000FF ,
545
+ .caps_lock = 0xE5A445FF ,
546
+ .verifying = 0x000000FF ,
547
+ .wrong = 0x000000FF ,
548
+ };
542
549
}
543
550
544
551
static void set_default_texts (struct swaylock_texts * texts ) {
You can’t perform that action at this time.
0 commit comments