mirror of
https://github.com/swaywm/sway.git
synced 2025-11-09 13:29:49 -05:00
swaylock: Add caps lock state to indicator
Implements customization for the indicator as proposed in #2788 with comments from #3367 in mind. The default behaviour does not change exept for the caps lock text color.
This commit is contained in:
parent
212baf2f75
commit
33d9de88ef
4 changed files with 171 additions and 39 deletions
|
|
@ -22,6 +22,7 @@ enum auth_state {
|
|||
struct swaylock_colorset {
|
||||
uint32_t input;
|
||||
uint32_t cleared;
|
||||
uint32_t caps_lock;
|
||||
uint32_t verifying;
|
||||
uint32_t wrong;
|
||||
};
|
||||
|
|
@ -30,6 +31,8 @@ struct swaylock_colors {
|
|||
uint32_t background;
|
||||
uint32_t bs_highlight;
|
||||
uint32_t key_highlight;
|
||||
uint32_t caps_lock_bs_highlight;
|
||||
uint32_t caps_lock_key_highlight;
|
||||
uint32_t separator;
|
||||
struct swaylock_colorset inside;
|
||||
struct swaylock_colorset line;
|
||||
|
|
@ -45,6 +48,8 @@ struct swaylock_args {
|
|||
uint32_t thickness;
|
||||
bool ignore_empty;
|
||||
bool show_indicator;
|
||||
bool show_caps_lock_text;
|
||||
bool show_caps_lock_indicator;
|
||||
bool daemonize;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue