style: re-format
This commit is contained in:
+30
-30
@@ -3,36 +3,36 @@ local colorscheme = {}
|
||||
|
||||
-- currently, only catppuccin is considerd
|
||||
if settings["colorscheme"] == "catppuccin" or settings["colorscheme"] == "catppuccin-mocha" or true then
|
||||
colorscheme.rosewater = "#f5e0dc"
|
||||
colorscheme.flamingo = "#f2cdcd"
|
||||
colorscheme.pink = "#f5c2e7"
|
||||
colorscheme.mauve = "#cba6f7"
|
||||
colorscheme.red = "#f38ba8"
|
||||
colorscheme.maroon = "#eba0ac"
|
||||
colorscheme.peach = "#fab387"
|
||||
colorscheme.yellow = "#f9e2af"
|
||||
colorscheme.green = "#a6e3a1"
|
||||
colorscheme.teal = "#94e2d5"
|
||||
colorscheme.sky = "#89dceb"
|
||||
colorscheme.sapphire = "#74c7ec"
|
||||
colorscheme.blue = "#89b4fa"
|
||||
colorscheme.lavender = "#b4befe"
|
||||
colorscheme.text = "#cdd6f4"
|
||||
colorscheme.subtext1 = "#bac2de"
|
||||
colorscheme.subtext0 = "#a6adc8"
|
||||
colorscheme.overlay2 = "#9399b2"
|
||||
colorscheme.overlay1 = "#7f849c"
|
||||
colorscheme.overlay0 = "#6c7086"
|
||||
colorscheme.surface2 = "#585b70"
|
||||
colorscheme.surface1 = "#45475a"
|
||||
colorscheme.surface0 = "#313244"
|
||||
colorscheme.base = "#1e1e2e"
|
||||
colorscheme.mantle = "#181825"
|
||||
colorscheme.crust = "#11111b"
|
||||
colorscheme.foreground = colorscheme.text
|
||||
colorscheme.background = colorscheme.base
|
||||
colorscheme.accent = colorscheme.blue
|
||||
colorscheme.second = colorscheme.sky
|
||||
colorscheme.rosewater = "#f5e0dc"
|
||||
colorscheme.flamingo = "#f2cdcd"
|
||||
colorscheme.pink = "#f5c2e7"
|
||||
colorscheme.mauve = "#cba6f7"
|
||||
colorscheme.red = "#f38ba8"
|
||||
colorscheme.maroon = "#eba0ac"
|
||||
colorscheme.peach = "#fab387"
|
||||
colorscheme.yellow = "#f9e2af"
|
||||
colorscheme.green = "#a6e3a1"
|
||||
colorscheme.teal = "#94e2d5"
|
||||
colorscheme.sky = "#89dceb"
|
||||
colorscheme.sapphire = "#74c7ec"
|
||||
colorscheme.blue = "#89b4fa"
|
||||
colorscheme.lavender = "#b4befe"
|
||||
colorscheme.text = "#cdd6f4"
|
||||
colorscheme.subtext1 = "#bac2de"
|
||||
colorscheme.subtext0 = "#a6adc8"
|
||||
colorscheme.overlay2 = "#9399b2"
|
||||
colorscheme.overlay1 = "#7f849c"
|
||||
colorscheme.overlay0 = "#6c7086"
|
||||
colorscheme.surface2 = "#585b70"
|
||||
colorscheme.surface1 = "#45475a"
|
||||
colorscheme.surface0 = "#313244"
|
||||
colorscheme.base = "#1e1e2e"
|
||||
colorscheme.mantle = "#181825"
|
||||
colorscheme.crust = "#11111b"
|
||||
colorscheme.foreground = colorscheme.text
|
||||
colorscheme.background = colorscheme.base
|
||||
colorscheme.accent = colorscheme.blue
|
||||
colorscheme.second = colorscheme.sky
|
||||
end
|
||||
|
||||
return colorscheme
|
||||
|
||||
+10
-10
@@ -6,19 +6,19 @@ M.cursor = "Vimix-Hyprcursor"
|
||||
M.size = 32
|
||||
|
||||
function M.fetch_Vimix_hyprcursor()
|
||||
if M.cursor == "Vimix-Hyprcursor" then
|
||||
if not utils.is_file_exists(DATA_HOME .. "/icons/Vimix-Hyprcursor") then
|
||||
local tmppath = "/tmp/Vimix-Hyprcursor"
|
||||
os.execute("git clone https://gitea.phy-yingjie.wang/wyj/Vimix-Hyprcursor.git " .. tmppath)
|
||||
os.execute("cp " .. tmppath .. "/theme_Vimix-Hyprcursor " .. DATA_HOME .. "/icons/Vimix-Hyprcursor")
|
||||
end
|
||||
end
|
||||
if M.cursor == "Vimix-Hyprcursor" then
|
||||
if not utils.is_file_exists(DATA_HOME .. "/icons/Vimix-Hyprcursor") then
|
||||
local tmppath = "/tmp/Vimix-Hyprcursor"
|
||||
os.execute("git clone https://gitea.phy-yingjie.wang/wyj/Vimix-Hyprcursor.git " .. tmppath)
|
||||
os.execute("cp " .. tmppath .. "/theme_Vimix-Hyprcursor " .. DATA_HOME .. "/icons/Vimix-Hyprcursor")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function M.load()
|
||||
M.fetch_Vimix_hyprcursor()
|
||||
hl.env("HYPRCURSOR_THEME", M.cursor)
|
||||
hl.env("HYPRCURSOR_SIZE", tostring(M.size))
|
||||
M.fetch_Vimix_hyprcursor()
|
||||
hl.env("HYPRCURSOR_THEME", M.cursor)
|
||||
hl.env("HYPRCURSOR_SIZE", tostring(M.size))
|
||||
end
|
||||
|
||||
return M
|
||||
|
||||
+42
-42
@@ -3,51 +3,51 @@ 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 },
|
||||
},
|
||||
},
|
||||
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)
|
||||
hl.config(M.confs)
|
||||
end
|
||||
|
||||
return M
|
||||
|
||||
+7
-7
@@ -4,19 +4,19 @@ local M = {}
|
||||
|
||||
---@type table<string, string>
|
||||
M.envs = {
|
||||
XDG_SESSION_TYPE = "wayland",
|
||||
XDG_SESSION_DESKTOP = "Hyprland",
|
||||
QT_AUTO_SCREEN_SCALE_FACTOR = "1",
|
||||
XDG_SESSION_TYPE = "wayland",
|
||||
XDG_SESSION_DESKTOP = "Hyprland",
|
||||
QT_AUTO_SCREEN_SCALE_FACTOR = "1",
|
||||
}
|
||||
|
||||
if settings["locale"] and settings["locale"] ~= "" then
|
||||
M.envs["LANG"] = settings["locale"]
|
||||
M.envs["LANG"] = settings["locale"]
|
||||
end
|
||||
|
||||
function M.load()
|
||||
for name, value in pairs(M.envs) do
|
||||
hl.env(name, value)
|
||||
end
|
||||
for name, value in pairs(M.envs) do
|
||||
hl.env(name, value)
|
||||
end
|
||||
end
|
||||
|
||||
return M
|
||||
|
||||
+9
-9
@@ -19,13 +19,13 @@ require("lua.plugins").load()
|
||||
require("lua.animations").load()
|
||||
|
||||
if string.sub(settings["hostname"], 1, 4) == "ATRI" then
|
||||
hl.on("hyprland.start", function()
|
||||
hl.exec_cmd("kitty", {
|
||||
workspace = "1 silent",
|
||||
})
|
||||
hl.exec_cmd("kitty -o font_size=10 btop", {
|
||||
workspace = "2 silent",
|
||||
})
|
||||
hl.exec_cmd("sleep 1 && pw-play ~/.local/share/startupsounds/start-computeraif-14572.mp3")
|
||||
end)
|
||||
hl.on("hyprland.start", function()
|
||||
hl.exec_cmd("kitty", {
|
||||
workspace = "1 silent",
|
||||
})
|
||||
hl.exec_cmd("kitty -o font_size=10 btop", {
|
||||
workspace = "2 silent",
|
||||
})
|
||||
hl.exec_cmd("sleep 1 && pw-play ~/.local/share/startupsounds/start-computeraif-14572.mp3")
|
||||
end)
|
||||
end
|
||||
|
||||
+22
-22
@@ -3,41 +3,41 @@ local settings = require("lua.lib.settings")
|
||||
local utils = require("lua.lib.utils")
|
||||
|
||||
M.confs = {
|
||||
input = { touchpad = {} },
|
||||
gestures = {},
|
||||
input = { touchpad = {} },
|
||||
gestures = {},
|
||||
}
|
||||
|
||||
if settings["profile"] == "desktop" then
|
||||
M.confs.input = table.insert(M.confs.input, { numlock_by_default = true })
|
||||
M.confs.input = table.insert(M.confs.input, { numlock_by_default = true })
|
||||
elseif settings["profile"] == "laptop" then
|
||||
M.confs.gestures = table.insert(M.confs.gestures, { workspace_swipe_touch = true })
|
||||
M.gestures = {
|
||||
{
|
||||
fingers = 3,
|
||||
direction = "horizontal",
|
||||
action = "workspace",
|
||||
},
|
||||
}
|
||||
M.confs.gestures = table.insert(M.confs.gestures, { workspace_swipe_touch = true })
|
||||
M.gestures = {
|
||||
{
|
||||
fingers = 3,
|
||||
direction = "horizontal",
|
||||
action = "workspace",
|
||||
},
|
||||
}
|
||||
end
|
||||
|
||||
--M.confs.input.touchpad.natural_scroll = settings["touchpad_natural_scroll"]
|
||||
M.confs = utils.tbl_recursive_merge(M.confs, {
|
||||
input = {
|
||||
touchpad = {
|
||||
natural_scroll = settings["touchpad_natural_scroll"],
|
||||
},
|
||||
},
|
||||
input = {
|
||||
touchpad = {
|
||||
natural_scroll = settings["touchpad_natural_scroll"],
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
M.confs.input.kb_layout = settings["kb_layout"]
|
||||
|
||||
function M.load()
|
||||
hl.config(M.confs)
|
||||
if M.gestures then
|
||||
for _, gesture in pairs(M.gestures) do
|
||||
hl.gesture(gesture)
|
||||
end
|
||||
end
|
||||
hl.config(M.confs)
|
||||
if M.gestures then
|
||||
for _, gesture in pairs(M.gestures) do
|
||||
hl.gesture(gesture)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
return M
|
||||
|
||||
+43
-43
@@ -1,56 +1,56 @@
|
||||
local M = {}
|
||||
|
||||
M.layer_rules = {
|
||||
{
|
||||
name = "blur-basic-layers",
|
||||
match = {
|
||||
namespace = "^(gtk-layer-shell|logout_dialog|nwg-drawer)$",
|
||||
},
|
||||
blur = true,
|
||||
},
|
||||
{
|
||||
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 = "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 = "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 = "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,
|
||||
},
|
||||
{
|
||||
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
|
||||
for _, rule in ipairs(M.layer_rules) do
|
||||
hl.layer_rule(rule)
|
||||
end
|
||||
end
|
||||
|
||||
return M
|
||||
|
||||
+10
-10
@@ -2,19 +2,19 @@ local M = {}
|
||||
local settings = require("lua.lib.settings")
|
||||
|
||||
M.confs = {
|
||||
general = {
|
||||
layout = settings["default_layout"],
|
||||
},
|
||||
dwindle = {
|
||||
preserve_split = true,
|
||||
},
|
||||
master = {},
|
||||
scrolling = {},
|
||||
monocle = {},
|
||||
general = {
|
||||
layout = settings["default_layout"],
|
||||
},
|
||||
dwindle = {
|
||||
preserve_split = true,
|
||||
},
|
||||
master = {},
|
||||
scrolling = {},
|
||||
monocle = {},
|
||||
}
|
||||
|
||||
function M.load()
|
||||
hl.config(M.confs)
|
||||
hl.config(M.confs)
|
||||
end
|
||||
|
||||
return M
|
||||
|
||||
+10
-10
@@ -3,19 +3,19 @@ local colorscheme = require("lua.conf.colorscheme")
|
||||
local settings = require("lua.lib.settings")
|
||||
|
||||
M.confs = {
|
||||
misc = {
|
||||
disable_hyprland_logo = true,
|
||||
disable_splash_rendering = true,
|
||||
vrr = 3,
|
||||
enable_swallow = true,
|
||||
swallow_regex = "^(kitty|Alacritty)$",
|
||||
background_color = colorscheme.background,
|
||||
font_family = settings["font_family"],
|
||||
},
|
||||
misc = {
|
||||
disable_hyprland_logo = true,
|
||||
disable_splash_rendering = true,
|
||||
vrr = 3,
|
||||
enable_swallow = true,
|
||||
swallow_regex = "^(kitty|Alacritty)$",
|
||||
background_color = colorscheme.background,
|
||||
font_family = settings["font_family"],
|
||||
},
|
||||
}
|
||||
|
||||
function M.load()
|
||||
hl.config(M.confs)
|
||||
hl.config(M.confs)
|
||||
end
|
||||
|
||||
return M
|
||||
|
||||
@@ -6,17 +6,17 @@ local M = {}
|
||||
M.monitors = {}
|
||||
|
||||
if settings["host"] == "laptop" then
|
||||
M.monitors = table.insert({ {
|
||||
output = "eDP-1",
|
||||
mode = "highres",
|
||||
scale = "auto",
|
||||
} })
|
||||
M.monitors = table.insert({ {
|
||||
output = "eDP-1",
|
||||
mode = "highres",
|
||||
scale = "auto",
|
||||
} })
|
||||
end
|
||||
|
||||
function M:load()
|
||||
for _, monitor in ipairs(self.monitors) do
|
||||
hl.monitor(monitor)
|
||||
end
|
||||
for _, monitor in ipairs(self.monitors) do
|
||||
hl.monitor(monitor)
|
||||
end
|
||||
end
|
||||
|
||||
return utils.extend_config(M, "lua.user.conf.monitor")
|
||||
|
||||
@@ -2,13 +2,13 @@ local M = {}
|
||||
local events = require("lua.lib.events")
|
||||
|
||||
M.autostart = {
|
||||
function()
|
||||
hl.exec_cmd("~/dotfiles/hypr/scripts/init-wallpaper-engine.sh")
|
||||
end,
|
||||
function()
|
||||
hl.exec_cmd("~/dotfiles/hypr/scripts/init-wallpaper-engine.sh")
|
||||
end,
|
||||
}
|
||||
|
||||
function M.load()
|
||||
events.map("hyprland.start", M.autostart)
|
||||
events.map("hyprland.start", M.autostart)
|
||||
end
|
||||
|
||||
return M
|
||||
|
||||
+38
-38
@@ -1,47 +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,
|
||||
},
|
||||
{
|
||||
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
|
||||
for _, rule in ipairs(M.window_rules) do
|
||||
hl.window_rule(rule)
|
||||
end
|
||||
end
|
||||
|
||||
return M
|
||||
|
||||
Reference in New Issue
Block a user