From f53aae84ea9781e73e0d645549fcbf1f081a798a Mon Sep 17 00:00:00 2001 From: zachir Date: Fri, 17 Mar 2023 18:10:52 -0500 Subject: rc.lua: fix callback error in swallowing, add Alacritty as term --- awesome/awesome-wm-widgets | 2 +- awesome/rc.lua | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'awesome') diff --git a/awesome/awesome-wm-widgets b/awesome/awesome-wm-widgets index d1c047c..ab328b2 160000 --- a/awesome/awesome-wm-widgets +++ b/awesome/awesome-wm-widgets @@ -1 +1 @@ -Subproject commit d1c047c78a647d0703785303c1ded6fb24ae0127 +Subproject commit ab328b257f981e5cab2dcd4e0e77b30928736e55 diff --git a/awesome/rc.lua b/awesome/rc.lua index d4dc3c9..bc49a37 100644 --- a/awesome/rc.lua +++ b/awesome/rc.lua @@ -776,6 +776,7 @@ awful.rules.rules = { "sptodo", "sptrem", "qpwgraph", + "QjackCtl", "gcr-prompter" } }, @@ -839,7 +840,7 @@ awful.rules.rules = { -- {{{ Window Swallowing functions ---[[ function is_terminal(c) - return (c.class and c.class:match("St")) and true or false + return (c.class and (c.class:match("St") or c.class:match("Alacritty"))) and true or false end function copy_size(c, parent_client) @@ -865,7 +866,7 @@ function get_parent_pid(child_ppid, callback) awful.spawn.easy_async(ppid_cmd, function(stdout, stderr, reason, exit_code) -- primitive error checking if stderr and stderr ~= "" then - callback(stderr) + callback(stderr, false) return end local ppid = stdout:gsub(" ", ""):gsub("\n", "") -- cgit v1.2.3