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

helpers: async_with_shell added
authorLuca CPZ <luca.cpz@gmail.com>
Tue, 19 Dec 2017 16:20:59 +0000 (17:20 +0100)
committerLuca CPZ <luca.cpz@gmail.com>
Tue, 19 Dec 2017 16:20:59 +0000 (17:20 +0100)
README.rst
helpers.lua
lain-git.rockspec
wiki

index 84cdc8b25fc356c16341e92c1b052abed9766adb..098f6bc44e121211a837ae2d0bac15e9d09e29e0 100644 (file)
@@ -5,7 +5,7 @@ Lain
 Layouts, widgets and utilities for Awesome WM 4.x
 -------------------------------------------------
 
-:Author: Luca CPZ <dada [at] archlinux [dot] info>
+:Author: Luca CPZ
 :Version: git
 :License: GNU-GPL2_
 :Source: https://github.com/lcpz/lain
@@ -13,7 +13,7 @@ Layouts, widgets and utilities for Awesome WM 4.x
 Description
 -----------
 
-Successor of awesome-vain_, this module provides alternative layouts, asynchronous widgets and utility functions for Awesome_ WM. Read the wiki_ for all the info.
+Successor of awesome-vain_, this module provides alternative layouts, asynchronous widgets and utility functions for Awesome_. Read the wiki_ for all the info.
 
 Contributions
 -------------
index 7fa85643551c3db0a4de72603243f2aab1ac035a..ab87f769fe5836004c920ad73e63a7c5de706641 100644 (file)
@@ -5,7 +5,7 @@
 
 --]]
 
-local easy_async = require("awful.spawn").easy_async
+local spawn = require("awful.spawn")
 local timer      = require("gears.timer")
 local debug      = require("debug")
 local io         = { lines = io.lines,
@@ -110,7 +110,15 @@ end
 -- @param callback function to execute on cmd output
 -- @return cmd PID
 function helpers.async(cmd, callback)
-    return easy_async(cmd,
+    return spawn.easy_async(cmd,
+    function (stdout, stderr, reason, exit_code)
+        callback(stdout)
+    end)
+end
+
+-- like above, but call spawn.easy_async with a shell
+function helpers.async_with_shell(cmd, callback)
+    return spawn.easy_async_with_shell(cmd,
     function (stdout, stderr, reason, exit_code)
         callback(stdout)
     end)
index acb1967d17e81a97009446874f61b44cba34dfbe..13b2db7760450729eb9ae0bdbfadd1211beb4afe 100644 (file)
@@ -12,7 +12,7 @@ description = {
         Optional dependency: curl (for IMAP, MPD and weather widgets).
     ]],
    homepage = "https://github.com/lcpz/lain",
-   license = "GPL v2"
+   license = "GPL-2.0"
 }
 dependencies = {
    "lua >= 5.1",
diff --git a/wiki b/wiki
index d9029707520bf9ce8e3f695659d8ceea4fef0f01..f395683e491fabd539fa0b5d596dbb5cc451e68e 160000 (submodule)
--- a/wiki
+++ b/wiki
@@ -1 +1 @@
-Subproject commit d9029707520bf9ce8e3f695659d8ceea4fef0f01
+Subproject commit f395683e491fabd539fa0b5d596dbb5cc451e68e