moltenbar/mod/bspwm_taskbar
fbt e321246abc fixes!
Signed-off-by: fbt <fbt@fleshless.org>
2017-05-22 19:46:44 +03:00

21 lines
379 B
Ruby

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