From a052a56bc2c476870259f22aca5791c553bf582b Mon Sep 17 00:00:00 2001 From: Dominik Bendle Date: Tue, 5 Feb 2019 16:12:54 +0100 Subject: 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. --- include/swaylock.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') 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; }; -- cgit v1.2.3