moltenbar/mod/bspwm_taskbar
fbt 8544bb8cd4 Fuck erb
Signed-off-by: fbt <fbt@fleshless.org>
2019-05-15 11:50:16 +03:00

20 lines
329 B
Ruby

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