Redrawing in USR1 is useless; also fork to spawn commands

This commit is contained in:
Jack L. Frost 2016-09-29 11:29:54 +03:00
parent 854700bce4
commit 699fb758c9

View File

@ -143,8 +143,10 @@ puts "Launching lemonbar as: " + lemonbar_cmd.join(" ")
IO.popen(lemonbar_cmd, "w+") do |pipe_lb|
pipe_lb.sync = true
Signal.trap("USR1") do
pipe_lb.puts config['format'].erb
fork do
pipe_lb.each do |line|
system(line)
end
end
pipe_r.each do |line|