From ba960eb54c28eed4ff1329df036677c0b48171fb Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Fri, 7 Dec 2018 09:31:29 +0100 Subject: [PATCH 1/1] fix profile matching --- .config/awesome/rc.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index 4041dba..b554e81 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -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 end @@ -437,7 +438,7 @@ local function initialise_to_autorandr_profile() end awful.spawn.with_line_callback('autorandr', { - stderr = process_line, + stdout = process_line, output_done = output_done, exit = handle_exit }) -- 2.39.5