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|
|
||||
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|
|
||||
|
Loading…
x
Reference in New Issue
Block a user