From e6c7aea915e876912eca37f42253f9395e03356b Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Mon, 13 Jan 2025 08:27:23 -0600 Subject: add newclass opt and change class of st256color --- func/tagnames.lua | 2 +- rc.lua | 2 +- rules.lua | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/func/tagnames.lua b/func/tagnames.lua index 75284ed..0274b7e 100644 --- a/func/tagnames.lua +++ b/func/tagnames.lua @@ -23,7 +23,7 @@ function nametagc_t(t, c) for _, c in ipairs(cs) do for _, ct in ipairs(c:tags()) do if ct == t then - nametag(t, c.class) + nametag(t, c.newclass or c.class) return end end diff --git a/rc.lua b/rc.lua index 8f44cb5..d707c93 100644 --- a/rc.lua +++ b/rc.lua @@ -23,7 +23,7 @@ require("keybindings") require("rules") require("func.noborders") require("func.sloppyfocus") -require("func.warpcursor") +--require("func.warpcursor") require("func.tagnames") --require("widgets.audio") diff --git a/rules.lua b/rules.lua index 0a5af26..795e8df 100644 --- a/rules.lua +++ b/rules.lua @@ -31,6 +31,12 @@ awful.rules.rules = { }}, properties = { warp_cursor = true, } }, + { + rule = { class = "st-256color" }, + properties = { + newclass = "st", + } + }, -- KeePassXC rules { rule = { class = "KeePassXC" }, -- cgit v1.2.3