]> 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:

some other space fixes
[etc/awesome.git] / widgets / fs.lua
index 96116179d6884944bfc6b1ac2a34c7ce3fa1b1b8..344bd873c1d5d979ae9a0d4630794e4ecf29644a 100644 (file)
@@ -43,7 +43,7 @@ function fs:show(t_out)
     notification = naughty.notify({
         text = ws,
        timeout = t_out,
     notification = naughty.notify({
         text = ws,
        timeout = t_out,
-        fg = beautiful.fg_focus,
+        fg = fs.color,
     })
 end
 
     })
 end
 
@@ -56,8 +56,8 @@ local function worker(args)
     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.header or ""
+    fs.color = args.color or beautiful.fg_focus or "#FFFFFF"
+    local footer = args.footer or " "
     local shadow = args.shadow or false
 
     local myfs = wibox.widget.textbox()
     local shadow = args.shadow or false
 
     local myfs = wibox.widget.textbox()
@@ -71,7 +71,7 @@ local function worker(args)
         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)