madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://<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 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://"]
  insteadOf = madduck:

fix profile matching
authormartin f. krafft <>
Fri, 7 Dec 2018 08:31:29 +0000 (09:31 +0100)
committermartin f. krafft <>
Fri, 7 Dec 2018 08:31:29 +0000 (09:31 +0100)

index 4041dba13b959de7fa323e506eb50ef2c5295356..b554e81539977486c3056c05136b01dafacf36fe 100644 (file)
@@ -413,10 +413,11 @@ end
 local function initialise_to_autorandr_profile()
     local profile
+    profile = nil
     local function process_line(line)
         if profile then return end
-        local match = string.match(line, "^([^%s]+) %(detected%)$")
+        local match = string.match(line, "^([^%s]+) %(detected%)")
         if match then
             profile = match
@@ -437,7 +438,7 @@ local function initialise_to_autorandr_profile()
     awful.spawn.with_line_callback('autorandr', {
-        stderr = process_line,
+        stdout = process_line,
         output_done = output_done,
         exit = handle_exit