added gestures, touch, max brightness default

This commit is contained in:
2026-05-27 20:47:32 +02:00
parent ddd43eb621
commit 1fea63a56f
2 changed files with 145 additions and 104 deletions
+1
View File
@@ -6,4 +6,5 @@ hl.on("hyprland.start", function()
hl.exec_cmd("wl-paste --type image --watch cliphist store") hl.exec_cmd("wl-paste --type image --watch cliphist store")
hl.exec_cmd("hyprsunset -i") hl.exec_cmd("hyprsunset -i")
hl.exec_cmd("nextcloud --background") hl.exec_cmd("nextcloud --background")
hl.exec_cmd("brightnessctl set 100%")
end) end)
+144 -104
View File
@@ -1,122 +1,162 @@
local C = require("modules.macchiato") local C = require("modules.macchiato")
hl.layer_rule({ hl.layer_rule({
name = "blur_popups_bar", name = "blur_popups_bar",
blur = true, blur = true,
match = { namespace = "ZShell-Bar" }, match = {namespace = "ZShell-Bar"},
ignore_alpha = 0.5, ignore_alpha = 0.5
}) })
hl.layer_rule({ hl.layer_rule({
name = "blur_popups_auth", name = "blur_popups_auth",
blur = true, blur = true,
match = { namespace = "ZShell-Auth" }, match = {namespace = "ZShell-Auth"},
ignore_alpha = 0.5, ignore_alpha = 0.5
}) })
hl.gesture = {fingers = 3, direction = "horizontal", action = "workspace"}
hl.config({ hl.config({
input = { input = {
kb_layout = "us", kb_layout = "us",
kb_variant = "intl", kb_variant = "intl",
kb_options = "fkeys:basic_13-24", kb_options = "fkeys:basic_13-24",
sensitivity = 0, sensitivity = 0,
accel_profile = "flat", accel_profile = "flat",
follow_mouse = 1, follow_mouse = 1,
touchpad = { touchpad = {
natural_scroll = true, natural_scroll = true,
scroll_factor = 0.4, scroll_factor = 0.4,
middle_button_emulation = true, middle_button_emulation = true
}, }
gestures = {}, },
}, gestures = {workspace_swipe_touch = true},
general = { general = {
gaps_in = 2, gaps_in = 2,
gaps_out = 2, gaps_out = 2,
border_size = 2, border_size = 2,
col = { col = {
active_border = { active_border = {
colors = { C.colors.mauveAlpha, C.colors.greenAlpha, C.colors.sapphireAlpha, C.colors.lavenderAlpha }, colors = {
angle = 90, C.colors.mauveAlpha, C.colors.greenAlpha,
}, C.colors.sapphireAlpha, C.colors.lavenderAlpha
inactive_border = { },
colors = { C.colors.surface1Alpha }, angle = 90
angle = 90, },
}, inactive_border = {colors = {C.colors.surface1Alpha}, angle = 90}
}, }
}, },
decoration = { decoration = {
rounding = 1, rounding = 1,
shadow = { shadow = {
enabled = false, enabled = false,
range = 6, range = 6,
render_power = 6, render_power = 6,
color = C.colors.baseAlpha, color = C.colors.baseAlpha,
color_inactive = C.colors.mantleAlpha, color_inactive = C.colors.mantleAlpha
}, },
blur = { blur = {
enabled = true, enabled = true,
size = 2, size = 2,
passes = 2, passes = 2,
new_optimizations = true, new_optimizations = true,
ignore_opacity = true, ignore_opacity = true,
contrast = 1.0, contrast = 1.0,
brightness = 1.0, brightness = 1.0,
vibrancy = 0, vibrancy = 0,
vibrancy_darkness = 0, vibrancy_darkness = 0,
xray = false, xray = false,
noise = 0.05, noise = 0.05,
popups = true, popups = true,
input_methods = true, input_methods = true
}, }
}, },
ecosystem = { ecosystem = {no_donation_nag = true, no_update_news = true},
no_donation_nag = true, misc = {disable_hyprland_logo = true},
no_update_news = true, debug = {full_cm_proto = true},
}, dwindle = {preserve_split = true}
misc = {
disable_hyprland_logo = true,
},
debug = {
full_cm_proto = true,
},
dwindle = {
preserve_split = true,
},
}) })
local animations = { local animations = {
{ leaf = "border", enabled = true, speed = 4, bezier = "linear" }, {leaf = "border", enabled = true, speed = 4, bezier = "linear"}, {
{ leaf = "borderangle", enabled = false, speed = 3, bezier = "linear", style = "loop" }, leaf = "borderangle",
{ leaf = "fadeOut", enabled = true, speed = 3, bezier = "default" }, enabled = false,
{ leaf = "fadeIn", enabled = true, speed = 4, bezier = "default" }, speed = 3,
{ leaf = "fadeLayers", enabled = true, speed = 1, bezier = "default" }, bezier = "linear",
{ leaf = "fadePopups", enabled = true, speed = 1, bezier = "default" }, style = "loop"
{ leaf = "global", enabled = true, speed = 6, bezier = "default" }, }, {leaf = "fadeOut", enabled = true, speed = 3, bezier = "default"},
{ leaf = "layers", enabled = true, speed = 5, bezier = "cubic-bezier", style = "fade" }, {leaf = "fadeIn", enabled = true, speed = 4, bezier = "default"},
{ leaf = "windows", enabled = true, speed = 3, bezier = "wind", style = "popin" }, {leaf = "fadeLayers", enabled = true, speed = 1, bezier = "default"},
{ leaf = "windowsIn", enabled = true, speed = 3, bezier = "winIn", style = "popin 90%" }, {leaf = "fadePopups", enabled = true, speed = 1, bezier = "default"},
{ leaf = "windowsOut", enabled = true, speed = 3, bezier = "winOut", style = "popin 90%" }, {leaf = "global", enabled = true, speed = 6, bezier = "default"}, {
{ leaf = "windowsMove", enabled = true, speed = 1, bezier = "wind", style = "slide" }, leaf = "layers",
{ leaf = "workspaces", enabled = true, speed = 4, bezier = "default" }, enabled = true,
speed = 5,
bezier = "cubic-bezier",
style = "fade"
},
{
leaf = "windows",
enabled = true,
speed = 3,
bezier = "wind",
style = "popin"
}, {
leaf = "windowsIn",
enabled = true,
speed = 3,
bezier = "winIn",
style = "popin 90%"
}, {
leaf = "windowsOut",
enabled = true,
speed = 3,
bezier = "winOut",
style = "popin 90%"
}, {
leaf = "windowsMove",
enabled = true,
speed = 1,
bezier = "wind",
style = "slide"
}, {leaf = "workspaces", enabled = true, speed = 4, bezier = "default"}
} }
local curves = { local curves = {
{ name = "wind", config = { type = "bezier", points = { { 0.05, 0.9 }, { 0.1, 1 } } } }, {
{ name = "winIn", config = { type = "bezier", points = { { 0.1, 1.0 }, { 0.1, 1 } } } }, name = "wind",
{ name = "winOut", config = { type = "bezier", points = { { 1, 0.35 }, { 1, 1 } } } }, config = {type = "bezier", points = {{0.05, 0.9}, {0.1, 1}}}
{ name = "linear", config = { type = "bezier", points = { { 1, 1 }, { 1, 1 } } } }, },
{ name = "cubic-bezier", config = { type = "bezier", points = { { 0.215, 0.61 }, { 0.355, 1 } } } }, {
{ name = "easeOutQuint", config = { type = "bezier", points = { { 0.23, 1 }, { 0.32, 1 } } } }, name = "winIn",
{ name = "easeInOutCubic", config = { type = "bezier", points = { { 0.65, 0.05 }, { 0.36, 1 } } } }, config = {type = "bezier", points = {{0.1, 1.0}, {0.1, 1}}}
{ name = "almostLinear", config = { type = "bezier", points = { { 0.5, 0.5 }, { 0.75, 1 } } } }, },
{ name = "quick", config = { type = "bezier", points = { { 0.15, 0 }, { 0.1, 1 } } } }, {name = "winOut", config = {type = "bezier", points = {{1, 0.35}, {1, 1}}}},
{ name = "easy", config = { type = "spring", mass = 1, stiffness = 71.2633, dampening = 15.8273644 } }, {name = "linear", config = {type = "bezier", points = {{1, 1}, {1, 1}}}}, {
name = "cubic-bezier",
config = {type = "bezier", points = {{0.215, 0.61}, {0.355, 1}}}
}, {
name = "easeOutQuint",
config = {type = "bezier", points = {{0.23, 1}, {0.32, 1}}}
}, {
name = "easeInOutCubic",
config = {type = "bezier", points = {{0.65, 0.05}, {0.36, 1}}}
}, {
name = "almostLinear",
config = {type = "bezier", points = {{0.5, 0.5}, {0.75, 1}}}
},
{name = "quick", config = {type = "bezier", points = {{0.15, 0}, {0.1, 1}}}},
{
name = "easy",
config = {
type = "spring",
mass = 1,
stiffness = 71.2633,
dampening = 15.8273644
}
}
} }
for _, curve in ipairs(curves) do for _, curve in ipairs(curves) do hl.curve(curve.name, curve.config) end
hl.curve(curve.name, curve.config)
end
for _, animation in ipairs(animations) do for _, animation in ipairs(animations) do hl.animation(animation) end
hl.animation(animation)
end