Compare commits

...

2 Commits

Author SHA1 Message Date
wyj 305a9a4532 new: add layerrules config 2026-05-30 03:58:53 -04:00
wyj d0f823dadb new: add windowrules config 2026-05-30 03:51:08 -04:00
3 changed files with 105 additions and 0 deletions
+2
View File
@@ -10,6 +10,8 @@ require("lua.conf.input").load()
require("lua.conf.decoration").load()
require("lua.conf.layout").load()
require("lua.conf.misc").load()
require("lua.conf.windowrules").load()
require("lua.conf.layerrules").load()
require("lua.binds").load()
require("lua.modules").load()
+56
View File
@@ -0,0 +1,56 @@
local M = {}
M.layer_rules = {
{
name = "blur-basic-layers",
match = {
namespace = "^(gtk-layer-shell|logout_dialog|nwg-drawer)$",
},
blur = true,
},
{
name = "waybar-translucent-popups",
match = {
namespace = "^(waybar)$",
},
blur_popups = true,
ignore_alpha = 0.10,
},
{
name = "rofi-blurred-xray",
match = {
namespace = "^(rofi)$",
},
blur = true,
xray = true,
ignore_alpha = 0,
},
{
name = "swaync-control-center-blur",
match = {
namespace = "^(swaync-control-center)$",
},
blur = true,
ignore_alpha = 0.5,
},
{
name = "swayosd-blur",
match = {
namespace = "^(swayosd)$",
},
blur = true,
ignore_alpha = 0.3,
},
}
function M.load()
for _, rule in ipairs(M.layer_rules) do
hl.layer_rule(rule)
end
end
return M
+47
View File
@@ -0,0 +1,47 @@
local M = {}
M.window_rules = {
{
name = "floating-utils",
match = {
class = "^(pavucontrol|blueman-manager|nm-connection-editor|qalculate-gtk|xdg-desktop-portal-gtk)$",
},
float = true,
},
{
name = "floating-mathematica",
match = {
title = "^(Mathematica|WolframNB)$",
},
float = true,
},
{
name = "transparent-vscode",
match = {
class = "^(code|code-url-handler)$",
},
opacity = "0.8",
},
{
name = "floating-social-apps",
match = {
class = "^(QQ|wechat)$",
},
float = true,
},
{
name = "floating-download-manager",
match = {
class = "^(fdm)$",
},
float = true,
},
}
function M.load()
for _, rule in ipairs(M.window_rules) do
hl.window_rule(rule)
end
end
return M