yambar/modules
Daniel Eklöf d576802e49
modules/sway-xkb: new module, uses sway 'input' events to expose kbd layout
We subscribe to Sway's 'input' events, and use these to expose input
devices' active XKB layout.

The module is configured by specifying a list of 'identifiers'; these
are the input devices (keyboards, typically), that we'll be
monitoring. All other input devices are ignored.

'content' is a template, and the module will instantiate a dynlist
with a 'content' for each *existing* input found in the 'identifiers'
list.

We also monitor for device 'added' and 'removed' events, and update
our internal list of existing inputs.

This means the user can configure a set of identifiers, and only those
that are actually present will be displayed. If a device that is
listed in the 'identifiers' list is added, it will be displayed. If it
is removed, it will no longer be displayed.
2019-08-14 21:51:43 +02:00
..
alsa.c modules: use calloc() instead of malloc() 2019-02-09 11:11:31 +01:00
backlight.c modules: use calloc() instead of malloc() 2019-02-09 11:11:31 +01:00
battery.c modules: use calloc() instead of malloc() 2019-02-09 11:11:31 +01:00
clock.c modules: use calloc() instead of malloc() 2019-02-09 11:11:31 +01:00
i3-common.c modules/sway-xkb: new module, uses sway 'input' events to expose kbd layout 2019-08-14 21:51:43 +02:00
i3-common.h modules/sway-xkb: new module, uses sway 'input' events to expose kbd layout 2019-08-14 21:51:43 +02:00
i3-ipc.h module/i3: use our own copy of i3/ipc.h 2019-03-31 12:08:44 +02:00
i3.c module/i3: use our own copy of i3/ipc.h 2019-03-31 12:08:44 +02:00
label.c modules: use calloc() instead of malloc() 2019-02-09 11:11:31 +01:00
meson.build modules/sway-xkb: new module, uses sway 'input' events to expose kbd layout 2019-08-14 21:51:43 +02:00
mpd.c module/mpd: don't try to strdup() NULL strings 2019-07-08 15:06:24 +02:00
network.c modules: use calloc() instead of malloc() 2019-02-09 11:11:31 +01:00
removables.c modules: use calloc() instead of malloc() 2019-02-09 11:11:31 +01:00
sway_xkb.c modules/sway-xkb: new module, uses sway 'input' events to expose kbd layout 2019-08-14 21:51:43 +02:00
xkb.c modules: use calloc() instead of malloc() 2019-02-09 11:11:31 +01:00
xwindow.c cmake: break out bar stuff to separate CMakeLists.txt 2019-02-07 12:06:16 +01:00