From: martin f. krafft Date: Fri, 7 Dec 2018 08:31:29 +0000 (+0100) Subject: fix profile matching X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/ba960eb54c28eed4ff1329df036677c0b48171fb?ds=inline;hp=--cc;pf=etc fix profile matching --- ba960eb54c28eed4ff1329df036677c0b48171fb 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 })