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

uniform timers for single-instance widgets; #114
authorLuke Bonham <dada@archlinux.info>
Sun, 12 Jul 2015 09:22:10 +0000 (11:22 +0200)
committercopycat-killer <dada@archlinux.info>
Wed, 5 Aug 2015 11:31:15 +0000 (13:31 +0200)
widgets/alsabar.lua
widgets/cpu.lua
widgets/mem.lua
widgets/sysload.lua
widgets/temp.lua

index 8ec5a00ed036feadb410ee1235df3fea6be75eea..c957dbb997086fb40833254fd84ac091d4e725b3 100644 (file)
@@ -56,7 +56,7 @@ function alsabar.notify()
     local preset = {
         title   = "",
         text    = "",
-        timeout = 4,
+        timeout = 5,
         screen  = alsabar.notifications.screen,
         font    = alsabar.notifications.font .. " " ..
                   alsabar.notifications.font_size,
@@ -90,7 +90,7 @@ end
 
 local function worker(args)
     local args       = args or {}
-    local timeout    = args.timeout or 4
+    local timeout    = args.timeout or 5
     local settings   = args.settings or function() end
     local width      = args.width or 63
     local height     = args.heigth or 1
index 7c1ecb032b3f613f30423fcb467219e7bc6bf9da..ec84101f6d0be1bf1ed07b8b6dfe015f4b916208 100644 (file)
@@ -28,7 +28,7 @@ local cpu = {
 
 local function worker(args)
     local args     = args or {}
-    local timeout  = args.timeout or 5
+    local timeout  = args.timeout or 2
     local settings = args.settings or function() end
 
     cpu.widget = wibox.widget.textbox('')
index 46bb5f90dc593631b270b5d41ff428208382d8c7..f6213b236fe01483002e97f63d90da812ebdb912 100644 (file)
@@ -23,7 +23,7 @@ local mem = {}
 
 local function worker(args)
     local args     = args or {}
-    local timeout  = args.timeout or 3
+    local timeout  = args.timeout or 2
     local settings = args.settings or function() end
 
     mem.widget = wibox.widget.textbox('')
index 144ad0cf4d143f9e050876b8813615463db4a3c5..b10c5e2300ec5737a97f5484610dc4e61944517e 100644 (file)
@@ -22,7 +22,7 @@ local sysload = {}
 
 local function worker(args)
     local args = args or {}
-    local timeout = args.timeout or 5
+    local timeout = args.timeout or 2
     local settings = args.settings or function() end
 
     sysload.widget = wibox.widget.textbox('')
index 5994f59a36f659aa274dba2f274ba8c619e2eb9e..1e93848e0419c9a0e993ec9389608dad7161d44b 100644 (file)
@@ -21,7 +21,7 @@ local temp = {}
 
 local function worker(args)
     local args     = args or {}
-    local timeout  = args.timeout or 5
+    local timeout  = args.timeout or 2
     local tempfile = args.tempfile or "/sys/class/thermal/thermal_zone0/temp"
     local settings = args.settings or function() end