-- -- Ion statusbar module configuration file -- --defwinprop { -- class = "Docker", -- statusbar = "dock" --} -- Create a statusbar mod_statusbar.create{ -- First screen, bottom left corner screen = 0, pos = 'bl', -- Set this to true if you want a full-width statusbar fullsize = false, -- Swallow systray windows systray = true, -- Template. Tokens %string are replaced with the value of the -- corresponding meter. Currently supported meters are: -- date date -- load load average (1min, 5min, 15min) -- load_Nmin N minute load average (N=1, 5, 15) -- mail_new mail count (mbox format file $MAIL) -- mail_unread mail count -- mail_total mail count -- mail_*_new mail count (from an alternate mail folder, see below) -- mail_*_unread mail count -- mail_*_total mail count -- -- Space preceded by % adds stretchable space for alignment of variable -- meter value widths. > before meter name aligns right using this -- stretchable space , < left, and | centers. -- Meter values may be zero-padded to a width preceding the meter name. -- These alignment and padding specifiers and the meter name may be -- enclosed in braces {}. -- -- %filler causes things on the marker's sides to be aligned left and -- right, respectively, and %systray is a placeholder for system tray -- windows and icons. -- template = "%mpd %filler [mails: %exec_maildir | im: %exec_psi] " .. "[mem: %mem_hused/%mem_cached/%mem_total | " .. "swap: %mem_sw_used/%mem_sw_total | load: %load] %date %systray", --template="[ %date || load: %05load_1min || mail: %02mail_new/%02mail_total ] %filler%systray", --template="[ %date || load:% %>load ] %filler %systray_dock", } -- Launch ion-statusd. This must be done after creating any statusbars -- for necessary statusd modules to be parsed from the templates. mod_statusbar.launch_statusd{ -- Date meter date = { -- ISO-8601 date format with additional abbreviated day name date_format = '%a %d, %H:%M', -- Finnish etc. date format --date_format = '%a %d.%m.%Y %H:%M', -- Locale date format (usually shows seconds, which would require -- updating rather often and can be distracting) --date_format = '%c', -- Additional date formats. --[[ formats = { time = '%H:%M', -- %date_time } --]] }, -- Load meter load = { --update_interval=10*1000, --important_threshold=1.5, --critical_threshold=4.0, }, -- Mail meter -- -- To monitor more mbox files, add them to the files table. For -- example, add mail_work_new and mail_junk_new to the template -- above, and define them in the files table: -- -- files = { work = "/path/to/work_email", junk = "/path/to/junk" } -- -- Don't use the keyword 'spool' as it's reserved for mbox. --mail = { -- update_interval = 60*1000, -- mbox = os.getenv("MAIL"), -- files = {}, --}, -- MPD mpd = { -- netcat path netcat = 'nc', -- 500 or less makes seconds increment relatively smoothly while playing update_interval = 500, -- mpd server info (localhost:6600 are mpd defaults) address = "localhost", port = 6600, -- mpd password (if any) password = nil, -- seconds to consider the mpd in 'important' hint (0 never, -1 always) important_time = 15, -- seconds -- display template -- --- -- can use the following: -- track metadata: %artist, %title, %num, %album, %year, %len -- current track position: %pos -- escape for the percent character: %% template = "%title by %artist, track %num from %album, %year " .. "(%pos/%len) [%volume]", -- output debug filename (false or nil for no debug output) debug = false, }, -- Memory monitor mem = { used_alarm = 75, -- Limits percentaje used_sw_alarm = 75, units = "m", -- "g" , "m" or "k" }, -- Scripts exec = { psi = { program = '~/.ion3/psi_status.sh', retry_delay = 1 * 1000, -- 1 segundo hint_regexp = { important = '^[0-9]', }, }, maildir = { program = '~/.ion3/maildir_status_server.sh 10', retry_delay = 10 * 1000, hint_regexp = { important = '([0-9]+)', }, }, }, } -- vim: set et sw=4 sts=4 :