moltenbar/mod/bspwm_taskbar
fbt c1ffc8cb6c ok this time for sure
Signed-off-by: fbt <fbt@fleshless.org>
2016-09-28 23:30:07 +03:00

20 lines
390 B
Ruby

# vim: ft=ruby
class BspwmTaskbar < Worker
def mainloop()
while true do
pipe = IO.popen("xtitle -s -f '%s'")
pipe.each do |line|
if line == "\n"
self.write ""
else
self.write @config['mod']['bspwm_taskbar']['begin'].erb + line.chomp + @config['mod']['bspwm_taskbar']['end'].erb + "\n"
end
end
end
end
end
Modules.add("bspwm_taskbar", "BspwmTaskbar")