summaryrefslogtreecommitdiff
path: root/include/swaylock.h
diff options
context:
space:
mode:
authorDominik Bendle <fubenkyou@protonmail.ch>2019-02-05 16:12:54 +0100
committerDominik Bendle <fubenkyou@protonmail.ch>2019-02-06 01:42:49 +0100
commita052a56bc2c476870259f22aca5791c553bf582b (patch)
tree04f862b0ee2bdadc73ab934f6e10719d724ac22c /include/swaylock.h
parent1db5c780378a9e7241c96917f90ada1433998b4d (diff)
Display xkb layout while typing
Displays the current keyboard layout below the unlock indicator if more than one xkb layout is configured or the show-keyboard-layout option is given. The text is displayed with a background box. Adds commandline options for text color, background color and border color of the box as well.
Diffstat (limited to 'include/swaylock.h')
-rw-r--r--include/swaylock.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/swaylock.h b/include/swaylock.h
index f3ed374..0324936 100644
--- a/include/swaylock.h
+++ b/include/swaylock.h
@@ -34,6 +34,9 @@ struct swaylock_colors {
uint32_t caps_lock_bs_highlight;
uint32_t caps_lock_key_highlight;
uint32_t separator;
+ uint32_t layout_background;
+ uint32_t layout_border;
+ uint32_t layout_text;
struct swaylock_colorset inside;
struct swaylock_colorset line;
struct swaylock_colorset ring;
@@ -50,6 +53,7 @@ struct swaylock_args {
bool show_indicator;
bool show_caps_lock_text;
bool show_caps_lock_indicator;
+ bool show_keyboard_layout;
bool show_failed_attempts;
bool daemonize;
};