moltenbar/mod/bspwm_taskbar
fbt 212ea98db8 the fuck. How did this ever work
Signed-off-by: fbt <fbt@fleshless.org>
2017-04-21 21:56:38 +03:00

19 lines
372 B
Ruby

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