diff --git a/moltenbar b/moltenbar index 50d27c3..38e03a3 100755 --- a/moltenbar +++ b/moltenbar @@ -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|