3 Email: deryni@unreliablesource.net
4 Summary: Adds an xkbgroup statusbar meter.
6 Last Updated: 2011-05-09
8 Copyright (c) Etan Reisner 2011
11 local group_hook
= ioncore
.get_hook("xkb_group_event")
12 if not group_hook
then
13 pcall(dopath
, "mod_xkbevents")
14 group_hook
= ioncore
.get_hook("xkb_group_event")
15 if not group_hook
then
16 warn("Could not load mod_xkbevents.")
21 local function group_event(tab
)
23 mod_statusbar
.inform("xkbgroup", tostring(tab
.group
))
25 ioncore
.defer(mod_statusbar
.update
)
28 group_hook
:add(group_event
)