You are not logged in.

#1 2014-06-21 20:13:14

toucan
Member
Registered: 2013-08-26
Posts: 13

Awesome+i3status integration

I wish to pipe i3status output to awesome's status bar.
Questions are:
1. When I run i3statusToAwesome (below) on its own, it functions as expected. When I run it through lua, the process for it seems to get duplicated. Why is this?
2. Is there a nicer way to stop the script when awesome exits? The method I am currently using (below in rc.lua) causes dbus errors.

Abridged version of rc.lua:

mystatustext = wibox.widget.textbox()
for s = 1, screen.count() do
     mywibox[s] = awful.wibox({ position = "top", screen = s })
     local right_layout = wibox.layout.fixed.horizontal()
     right_layout:add(mystatustext)
     local layout = wibox.layout.align.horizontal()
     layout:set_right(right_layout)
     mywibox[s]:set_widget(layout)
end
statustextupdate = io.open("/bin/bash /home/me/.config/awesome/i3statusToAwesome &")
awesome.connect_signal("exit", function() statustextupdate:close() end)

i3statusToAwesome

i3status | while :
do
        read line
        echo  "mystatustext:set_text(\"$line\")" | awesome-client || exit 1
done

Offline

Board footer

Powered by FluxBB