REF make id's more legit
This commit is contained in:
parent
4b5f289b99
commit
554a8ced0d
|
@ -4,8 +4,8 @@ local impure = require 'impure'
|
||||||
|
|
||||||
return function(main_state, config, common, width, point)
|
return function(main_state, config, common, width, point)
|
||||||
local geo = config.geometry
|
local geo = config.geometry
|
||||||
local SPACING = geo.bar_spacing
|
local bar_spacing = geo.bar_spacing
|
||||||
local SEPARATOR_SPACING = geo.sep_spacing
|
local separator_bar_spacing = geo.sep_spacing
|
||||||
|
|
||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
-- smartd
|
-- smartd
|
||||||
|
@ -50,7 +50,7 @@ return function(main_state, config, common, width, point)
|
||||||
-- relative to the right edge of the text column
|
-- relative to the right edge of the text column
|
||||||
geo.bar_pad,
|
geo.bar_pad,
|
||||||
names,
|
names,
|
||||||
SPACING,
|
bar_spacing,
|
||||||
12,
|
12,
|
||||||
80
|
80
|
||||||
)
|
)
|
||||||
|
@ -64,7 +64,7 @@ return function(main_state, config, common, width, point)
|
||||||
end
|
end
|
||||||
return common.mk_acc(
|
return common.mk_acc(
|
||||||
width,
|
width,
|
||||||
(#config.fs_paths - 1) * SPACING,
|
(#config.fs_paths - 1) * bar_spacing,
|
||||||
update,
|
update,
|
||||||
pure.partial(common.compound_bar_draw_static, obj),
|
pure.partial(common.compound_bar_draw_static, obj),
|
||||||
pure.partial(common.compound_bar_draw_dynamic, obj)
|
pure.partial(common.compound_bar_draw_dynamic, obj)
|
||||||
|
@ -79,7 +79,7 @@ return function(main_state, config, common, width, point)
|
||||||
point = point,
|
point = point,
|
||||||
width = width,
|
width = width,
|
||||||
set_state = nil,
|
set_state = nil,
|
||||||
top = {{mk_smart, config.show_smart, SEPARATOR_SPACING}},
|
top = {{mk_smart, config.show_smart, separator_bar_spacing}},
|
||||||
common.mk_section(SEPARATOR_SPACING, {mk_bars, true, 0})
|
common.mk_section(separator_bar_spacing, {mk_bars, true, 0})
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
|
@ -2,13 +2,15 @@ local pure = require 'pure'
|
||||||
local i_o = require 'i_o'
|
local i_o = require 'i_o'
|
||||||
|
|
||||||
return function(update_freq, config, common, width, point)
|
return function(update_freq, config, common, width, point)
|
||||||
|
local NA = 'N/A'
|
||||||
|
local NVIDIA_EXE = 'nvidia-settings'
|
||||||
|
|
||||||
local geo = config.geometry
|
local geo = config.geometry
|
||||||
local sep_spacing = geo.sep_spacing
|
local sep_spacing = geo.sep_spacing
|
||||||
local text_spacing = geo.text_spacing
|
local text_spacing = geo.text_spacing
|
||||||
local plot_sec_break = geo.plot.sec_break
|
local plot_sec_break = geo.plot.sec_break
|
||||||
local plot_height = geo.plot.height
|
local plot_height = geo.plot.height
|
||||||
local NA = 'N/A'
|
|
||||||
local NVIDIA_EXE = 'nvidia-settings'
|
|
||||||
local __string_match = string.match
|
local __string_match = string.match
|
||||||
local __string_format = string.format
|
local __string_format = string.format
|
||||||
local __tonumber = tonumber
|
local __tonumber = tonumber
|
||||||
|
|
|
@ -5,12 +5,13 @@ local pure = require 'pure'
|
||||||
local sys = require 'sys'
|
local sys = require 'sys'
|
||||||
|
|
||||||
return function(update_freq, config, common, width, point)
|
return function(update_freq, config, common, width, point)
|
||||||
local geo = config.geometry
|
|
||||||
local dial_thickness = 8
|
local dial_thickness = 8
|
||||||
local dial_radius = 32
|
local dial_radius = 32
|
||||||
local dial_x_spacing = 40
|
local dial_x_spacing = 40
|
||||||
local cache_y_offset = 7
|
local cache_y_offset = 7
|
||||||
local cache_x_offset = 50
|
local cache_x_offset = 50
|
||||||
|
|
||||||
|
local geo = config.geometry
|
||||||
local plot_sec_break = geo.plot.sec_break
|
local plot_sec_break = geo.plot.sec_break
|
||||||
local plot_height = geo.plot.height
|
local plot_height = geo.plot.height
|
||||||
local table_sec_break = geo.table.sec_break
|
local table_sec_break = geo.table.sec_break
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
local pure = require 'pure'
|
local pure = require 'pure'
|
||||||
|
|
||||||
return function(main_state, config, common, width, point)
|
return function(main_state, config, common, width, point)
|
||||||
local TEXT_SPACING = config.geometry.text_spacing
|
local text_spacing = config.geometry.text_spacing
|
||||||
|
|
||||||
local __string_match = string.match
|
local __string_match = string.match
|
||||||
local __string_gmatch = string.gmatch
|
local __string_gmatch = string.gmatch
|
||||||
|
@ -11,7 +11,7 @@ return function(main_state, config, common, width, point)
|
||||||
point.x,
|
point.x,
|
||||||
y,
|
y,
|
||||||
width,
|
width,
|
||||||
TEXT_SPACING,
|
text_spacing,
|
||||||
{'Total', 'Explicit', 'Outdated', 'Orphaned', 'Local'}
|
{'Total', 'Explicit', 'Outdated', 'Orphaned', 'Local'}
|
||||||
)
|
)
|
||||||
local update = function()
|
local update = function()
|
||||||
|
@ -33,7 +33,7 @@ return function(main_state, config, common, width, point)
|
||||||
end
|
end
|
||||||
return common.mk_acc(
|
return common.mk_acc(
|
||||||
width,
|
width,
|
||||||
TEXT_SPACING * 4,
|
text_spacing * 4,
|
||||||
update,
|
update,
|
||||||
pure.partial(common.text_rows_draw_static, obj),
|
pure.partial(common.text_rows_draw_static, obj),
|
||||||
pure.partial(common.text_rows_draw_dynamic, obj)
|
pure.partial(common.text_rows_draw_dynamic, obj)
|
||||||
|
|
Loading…
Reference in New Issue