update: init decoration conf
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
local settings = require("lua.lib.settings")
|
||||
local colorscheme
|
||||
local colorscheme = {}
|
||||
|
||||
-- currently, only catppuccin is considerd
|
||||
if settings["colorscheme"] == "catppuccin" or settings["colorscheme"] == "catppuccin-mocha" or true then
|
||||
@@ -32,6 +32,7 @@ if settings["colorscheme"] == "catppuccin" or settings["colorscheme"] == "catppu
|
||||
colorscheme.foreground = colorscheme.text
|
||||
colorscheme.background = colorscheme.surface0
|
||||
colorscheme.accent = colorscheme.blue
|
||||
colorscheme.second = colorscheme.sky
|
||||
end
|
||||
|
||||
return colorscheme
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
local M = {}
|
||||
local colorscheme = require("lua.conf.colorscheme")
|
||||
--local settings = require("lua.lib.settings")
|
||||
|
||||
M.confs = {
|
||||
general = {
|
||||
gaps_in = 10,
|
||||
gaps_out = 14,
|
||||
border_size = 2,
|
||||
col = { active_border = colorscheme.accent, inactive_border = colorscheme.foreground .. "a0" },
|
||||
},
|
||||
group = {
|
||||
col = { border_active = colorscheme.second, border_inactive = colorscheme.foreground .. "a0" },
|
||||
groupbar = {
|
||||
font_size = 12,
|
||||
text_color = colorscheme.foreground,
|
||||
height = 16,
|
||||
gradients = false,
|
||||
col = { active = colorscheme.teal, inactive = colorscheme.accent },
|
||||
},
|
||||
},
|
||||
decoration = {
|
||||
rounding = 12,
|
||||
rounding_power = 3.0,
|
||||
blur = {
|
||||
enabled = true,
|
||||
size = 12,
|
||||
passes = 3,
|
||||
noise = 0.06,
|
||||
new_optimizations = true,
|
||||
ignore_opacity = true,
|
||||
xray = false,
|
||||
popups = true,
|
||||
popups_ignorealpha = 0.3,
|
||||
},
|
||||
active_opacity = 1.0,
|
||||
inactive_opacity = 0.8,
|
||||
fullscreen_opacity = 1.0,
|
||||
shadow = {
|
||||
enabled = true,
|
||||
range = 15,
|
||||
render_power = 2,
|
||||
color = 0xbb000000,
|
||||
offset = { 1, 1 },
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
function M.load()
|
||||
hl.config(M.confs)
|
||||
end
|
||||
|
||||
return M
|
||||
@@ -7,6 +7,7 @@ require("lua.conf.wallpaper").load()
|
||||
require("lua.conf.cursor").load()
|
||||
require("lua.conf.env").load()
|
||||
require("lua.conf.input").load()
|
||||
require("lua.conf.decoration").load()
|
||||
|
||||
require("lua.modules").load()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user