diff options
author | Robinhuett <5955614+Robinhuett@users.noreply.github.com> | 2019-01-10 20:14:54 +0100 |
---|---|---|
committer | Brian Ashworth <bosrsf04@gmail.com> | 2019-01-10 16:14:18 -0500 |
commit | 33d9de88efa7642e20b37493ff60ad0e9689ea47 (patch) | |
tree | 25724f4ae562927cf69e4ec3976bc8b5556fc1bd /include | |
parent | 212baf2f75dca0279759ce6c27cfc68541b1b922 (diff) | |
download | sway-33d9de88efa7642e20b37493ff60ad0e9689ea47.tar.xz |
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.
Diffstat (limited to 'include')
-rw-r--r-- | include/swaylock/swaylock.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/swaylock/swaylock.h b/include/swaylock/swaylock.h index 18af7ab4..516a56f4 100644 --- a/include/swaylock/swaylock.h +++ b/include/swaylock/swaylock.h @@ -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; }; |