@@ -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
|
||||
|
Reference in New Issue
Block a user