Commit 26526415 authored by epsi sayidina's avatar epsi sayidina

herbstluftwm tags with lemonbar

parent 8dd30fd5
......@@ -58,7 +58,7 @@ function _M.walk_content(monitor, process)
end
function _M.run_lemon(monitor, parameters)
local command_out = 'lemonbar ' .. parameters
local command_out = 'lemonbar ' .. parameters .. ' | sh'
local pipe_out = assert(io.popen(command_out, 'w'))
_M.init_content(monitor, pipe_out)
......
......@@ -51,7 +51,7 @@ end
def run_lemon(monitor, parameters)
command_out = 'lemonbar ' + parameters
IO.popen(command_out, "r+") do |f|
IO.popen(command_out, 'r+') do |f|
pid = fork do
init_content(monitor, f)
......@@ -59,7 +59,7 @@ def run_lemon(monitor, parameters)
end
Process.detach(pid)
IO.popen('sh', "w") do |sh|
IO.popen('sh', 'w') do |sh|
while f do
sh.puts f.gets
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