]> git.madduck.net Git - etc/awesome.git/commitdiff

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:

#103: revert to original fs implementation
authorluke bonham <dada@archlinux.info>
Wed, 25 Mar 2015 18:41:08 +0000 (19:41 +0100)
committercopycat-killer <dada@archlinux.info>
Wed, 5 Aug 2015 11:31:15 +0000 (13:31 +0200)
widgets/alsabar.lua
widgets/fs.lua

index fa10bc2e4215ad1e16d42e7bc27aa4ac93f05205..b12e55cbb88608eeed7ec20980efecfd5ebab77d 100644 (file)
@@ -27,7 +27,7 @@ local setmetatable = setmetatable
 local alsabar = {
     card    = "0",
     channel = "Master",
 local alsabar = {
     card    = "0",
     channel = "Master",
-    step    = "5%",
+    step    = "2%",
 
     colors = {
         background = beautiful.bg_normal,
 
     colors = {
         background = beautiful.bg_normal,
index 3b99cbaf9a60dab18c9612c07fdee39ac3dc90f6..8b51178d193aa6f38c2b05023e1d53ceeb22c387 100644 (file)
@@ -66,7 +66,7 @@ local function worker(args)
     function update()
         fs_info = {}
         fs_now  = {}
     function update()
         fs_info = {}
         fs_now  = {}
-        local f = io.popen("LC_ALL=C df -kP " .. partition)
+        local f = assert(io.popen("LC_ALL=C df -kP"))
 
         for line in f:lines() do -- Match: (size) (used)(avail)(use%) (mount)
             local s     = string.match(line, "^.-[%s]([%d]+)")
 
         for line in f:lines() do -- Match: (size) (used)(avail)(use%) (mount)
             local s     = string.match(line, "^.-[%s]([%d]+)")