В общем сабж.
Кусок конфига #1:
--{{---| Keyboard layout widget |---------------------------------------------------------------------------
kbdicon = widget ({type = "imagebox" })
kbdicon.image = image(beautiful.widget_battery)
kbdwidget = widget({ type = "textbox", name = "kbdwidget" })
kbdwidget.text = '<span background="#92B0A0" font="Terminus 12"> <span font="Terminus 9" color="#FFFFFF" background="#92B0A0"> Eng </span></span>'
dbus.request_name("session", "ru.gentoo.kbdd")
dbus.add_match("session", "interface='ru.gentoo.kbdd',member='layoutChanged'")
dbus.add_signal("ru.gentoo.kbdd", function(...)
local data = {...}
local layout = data[2]
lts = {[0] = "Eng", [1] = "Рус"}
kbdwidget.text = '<span background="#92B0A0" font="Terminus 12"> <span font="Terminus 9" color="#FFFFFF" background="#92B0A0">' ..lts[layout].. ' </span></span>'
end
)
#2:
mywibox[s].widgets = {
{ mylauncher, mytaglist[s], mypromptbox[s], layout = awful.widget.layout.horizontal.leftright },
mylayoutbox[s],
arr1,
spr3f,
s ==1 and binaryclock.widget,
s == 2 and mysystray,
spr3f,
-- arrl,
-- my_cal.widget,
arr2,
netwidget,
neticon,
arr3,
kbdwidget,
kbdicon,
arr4,
fswidget,
udisks_glue.widget,
arr5,
sensors,
tempicon,
arr6,
cpuwidget,
cpuicon,
arr7,
memwidget,
memicon,
arr8,
task_warrior.widget,
arr9,
music,
arr0,
mailicon,
arr9,
spr,
s == 1 and spr or nil, mytasklist[s],
layout = awful.widget.layout.horizontal.rightleft } end
Как выглядит сейчас: http://img580.imageshack.us/img580/6624/screenshotd7079fe9.png (левый монитор, сверху с краю, черный прямоугольник.)
Как выглядит если отключить второй монитор: http://img834.imageshack.us/img834/2042/screenshotdb71589e.png