From 943b42de05cc3328ea74b0d9f527f17e1fcf47e7 Mon Sep 17 00:00:00 2001 From: Michael Buch Date: Wed, 23 May 2018 07:16:30 +0100 Subject: Add keymap component Adding a new keymap component that will indicate the current keyboard layout (language) and variant if any was set. I use the standard X11 XKB APIs to retrieve and parse the xkb_symbols set with setxkbmap. --- slstatus.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'slstatus.h') diff --git a/slstatus.h b/slstatus.h index a18b881..6112e7e 100644 --- a/slstatus.h +++ b/slstatus.h @@ -37,6 +37,9 @@ const char *kernel_release(void); /* keyboard_indicators */ const char *keyboard_indicators(void); +/* keymap */ +const char *keymap(void); + /* load_avg */ const char *load_avg(const char *); -- cgit v1.2.3