Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
2017-05-22 19:46:44 +03:00
parent 72d67d16f2
commit e321246abc
2 changed files with 10 additions and 4 deletions

View File

@@ -2,12 +2,14 @@
class BspwmTaskbar < Worker
def mainloop()
IO.popen("xtitle -s -f '%s\n'") do |pipe|
IO.popen("xtitle -s -f '%s'") do |pipe|
pipe.each do |line|
if line == "\n"
line.chomp!
if line == ""
self.write ""
else
tmpl = Template.new(@my_config['begin'] + line.chomp + @my_config['end'])
tmpl = Template.new(@my_config['begin'] + line + @my_config['end'])
self.write tmpl.render(@config, nil)
end
end