Fix and improve dotfiles
This commit is contained in:
@@ -37,7 +37,7 @@ mod_statusbar.create{
|
||||
-- right, respectively, and %systray is a placeholder for system tray
|
||||
-- windows and icons.
|
||||
--
|
||||
template=" %battery %battery_remaining | %load | %mem_available | %cpufreq_M %filler %pomodoro [ %timelogger ] %systray | %date ",
|
||||
template=" %battery %battery_remaining | %load | %mem_available | %filler | %taskwarrior | %pomodoro [ %timelogger ] %systray | %date ",
|
||||
--template="[ %date || load:% %>load || mail:% %>mail_new/%>mail_total ] %filler%systray",
|
||||
--template="[ %date || load: %05load_1min || mail: %02mail_new/%02mail_total ] %filler%systray",
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user