From 3618d95b11e4b01c95eae87d1c2f0137eb9059af Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Wed, 13 May 2015 12:52:22 +0200 Subject: [PATCH] minor: doc fix for awful.widget.keyboardlayout --- lib/awful/widget/keyboardlayout.lua.in | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/awful/widget/keyboardlayout.lua.in b/lib/awful/widget/keyboardlayout.lua.in index 155ed6ff..0decdb9a 100644 --- a/lib/awful/widget/keyboardlayout.lua.in +++ b/lib/awful/widget/keyboardlayout.lua.in @@ -33,12 +33,10 @@ local function update_layout(keyboardlayout) keyboardlayout.layout = {}; local group_names = awesome.xkb_get_group_names(); --- typical layout string looks like "pc+us+ru:2+de:3+ba:4+inet" --- and we want to get only three mathes: "us", "ru:2", "de:3" "ba:4" --- also please note, that numbers of groups reported by xkb_get_group_names --- is greater by one of the real group number - - +-- A typical layout string looks like "pc+us+ru:2+de:3+ba:4+inet", +-- and we want to get only three matches: "us", "ru:2", "de:3" "ba:4". +-- Please note that numbers of groups reported by xkb_get_group_names +-- is greater by one than the real group number. local first_group = string.match(group_names, "+(%a+)"); if (not first_group) then error ("Failed to get list of keyboard groups");