Fix and improve dotfiles

This commit is contained in:
2019-01-15 11:34:48 +04:00
parent 64a675368c
commit 5b2844a2f0
10 changed files with 69 additions and 50 deletions

View File

@@ -8,7 +8,7 @@ local task_timer
-- Read the active task
local function read_task_data ()
local f = assert(io.popen("/usr/bin/task statusd limit:1 | head -n 4 | tail -n 1"))
local f = assert(io.popen("/usr/bin/task statusd limit:1 | head -n 4 | tail -n 1 | sed 's/\s\+/ /g'"))
local data = f:read("*all")
f:close()
return data