Commit 8dd30fd5 authored by epsi sayidina's avatar epsi sayidina

herbstluftwm tags with lemonbar

parent 2e939bb7
......@@ -51,9 +51,21 @@ end
def run_lemon(monitor, parameters)
command_out = 'lemonbar ' + parameters
IO.popen(command_out, "w") do |f|
init_content(monitor, f)
walk_content(monitor, f) # loop for each event
IO.popen(command_out, "r+") do |f|
pid = fork do
init_content(monitor, f)
walk_content(monitor, f) # loop for each event
end
Process.detach(pid)
IO.popen('sh', "w") do |sh|
while f do
sh.puts f.gets
end
sh.close()
end
f.close()
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment