mirror of https://github.com/lcpz/lain.git
allow add_us_secondary to be turned off.
problem with test expression and nil value.
This commit is contained in:
parent
9c40d29ecb
commit
823ea6537a
|
@ -22,11 +22,13 @@ local function worker (args)
|
||||||
|
|
||||||
local layouts = args.layouts
|
local layouts = args.layouts
|
||||||
local settings = args.settings or function () end
|
local settings = args.settings or function () end
|
||||||
local add_us_secondary = args.add_us_secondary or true
|
local add_us_secondary = true
|
||||||
local timeout = args.timeout or 5
|
local timeout = args.timeout or 5
|
||||||
|
|
||||||
local idx = 1
|
local idx = 1
|
||||||
|
|
||||||
|
if args.add_us_secondary == false then add_us_secondary = false end
|
||||||
|
|
||||||
-- Mouse bindings
|
-- Mouse bindings
|
||||||
kbdlayout.widget:buttons(awful.util.table.join(
|
kbdlayout.widget:buttons(awful.util.table.join(
|
||||||
awful.button({ }, 1, function () kbdlayout.next() end),
|
awful.button({ }, 1, function () kbdlayout.next() end),
|
||||||
|
|
Loading…
Reference in New Issue