]>
git.madduck.net Git - etc/awesome.git/blobdiff - widgets/fs.lua
madduck's git repository
Every one of the projects in this repository is available at the canonical
URL git://git.madduck.net/madduck/pub/<projectpath> — see
each project's metadata for the exact URL.
All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@ git. madduck. net .
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
SSH access, as well as push access can be individually
arranged .
If you use my repositories frequently, consider adding the following
snippet to ~/.gitconfig and using the third clone URL listed for each
project:
[url "git://git.madduck.net/madduck/"]
insteadOf = madduck:
notification = naughty.notify({
text = ws,
timeout = t_out,
notification = naughty.notify({
text = ws,
timeout = t_out,
- fg = beautiful.fg_focus ,
local refresh_timeout = args.refresh_timeout or 600
local header = args.header or " Hdd "
local header_color = args.header_color or beautiful.fg_normal or "#FFFFFF"
local refresh_timeout = args.refresh_timeout or 600
local header = args.header or " Hdd "
local header_color = args.header_color or beautiful.fg_normal or "#FFFFFF"
- local color = args.color or beautiful.fg_focus or "#FFFFFF"
- local footer = args.head er or ""
+ fs. color = args.color or beautiful.fg_focus or "#FFFFFF"
+ local footer = args.foot er or ""
local shadow = args.shadow or false
local myfs = wibox.widget.textbox()
local shadow = args.shadow or false
local myfs = wibox.widget.textbox()
local function set_text()
local info = fs_info['{' .. partition .. ' used_p}']
myfs:set_markup(markup(header_color, header)
local function set_text()
local info = fs_info['{' .. partition .. ' used_p}']
myfs:set_markup(markup(header_color, header)
- .. markup(color, info .. footer) .. " " )
+ .. markup(fs.color, info .. footer) )
end
for line in f:lines() do -- Match: (size) (used)(avail)(use%) (mount)
end
for line in f:lines() do -- Match: (size) (used)(avail)(use%) (mount)