Redrawing in USR1 is useless; also fork to spawn commands
This commit is contained in:
parent
854700bce4
commit
699fb758c9
|
@ -143,8 +143,10 @@ puts "Launching lemonbar as: " + lemonbar_cmd.join(" ")
|
||||||
IO.popen(lemonbar_cmd, "w+") do |pipe_lb|
|
IO.popen(lemonbar_cmd, "w+") do |pipe_lb|
|
||||||
pipe_lb.sync = true
|
pipe_lb.sync = true
|
||||||
|
|
||||||
Signal.trap("USR1") do
|
fork do
|
||||||
pipe_lb.puts config['format'].erb
|
pipe_lb.each do |line|
|
||||||
|
system(line)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
pipe_r.each do |line|
|
pipe_r.each do |line|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user