From 18799665569cf136a40f7b722d88259dd97ac9b1 Mon Sep 17 00:00:00 2001 From: Abdo Roig-Maranges Date: Wed, 30 Mar 2016 14:32:21 +0200 Subject: [PATCH] handle layout names like us(altgr-intl) --- lib/awful/widget/keyboardlayout.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/awful/widget/keyboardlayout.lua b/lib/awful/widget/keyboardlayout.lua index b3b837626..2eb407663 100644 --- a/lib/awful/widget/keyboardlayout.lua +++ b/lib/awful/widget/keyboardlayout.lua @@ -214,7 +214,7 @@ function keyboardlayout.get_groups_from_group_names(group_names) end if section then - section = string.gsub(section, "%(([%w_]+)%)", "%1") + section = string.gsub(section, "%(([%w-_]+)%)", "%1") end table.insert(layout_groups, { vendor = vendor,