Compare commits

...
6 Commits
4 changed files with 45 additions and 88 deletions
+18
View File
@@ -60,3 +60,21 @@ hl.bind("SUPER + F1", hl.dsp.global("zshell:lock"))
hl.bind("SUPER + F2", hl.dsp.global("zshell:toggle-settings")) hl.bind("SUPER + F2", hl.dsp.global("zshell:toggle-settings"))
hl.bind("XF86MonBrightnessUp", hl.dsp.global("zshell:brightnessUp"), { locked = true, repeating = true }) hl.bind("XF86MonBrightnessUp", hl.dsp.global("zshell:brightnessUp"), { locked = true, repeating = true })
hl.bind("XF86MonBrightnessDown", hl.dsp.global("zshell:brightnessDown"), { locked = true, repeating = true }) hl.bind("XF86MonBrightnessDown", hl.dsp.global("zshell:brightnessDown"), { locked = true, repeating = true })
hl.bind("SUPER + T", function()
local m = hl.get_monitor("eDP-1")
if m == nil then
return
end
local t = m.transform == 0 and 1 or 0
hl.monitor({
output = "eDP-1",
mode = "2880x1800@120",
position = "0x0",
scale = 1.125,
bitdepth = 10,
cm = "srgb",
transform = t,
})
hl.config({ input = { touchdevice = { transform = t }, tablet = { transform = t } } })
end)
+2 -2
View File
@@ -4,8 +4,8 @@ hl.env("TERM", "tmux-256color")
hl.env("VISUAL", "nvim") hl.env("VISUAL", "nvim")
hl.env("EDITOR", "nvim") hl.env("EDITOR", "nvim")
hl.env("HYPRCURSOR_THEME", "catppuccin-macchiato-light-cursors") hl.env("HYPRCURSOR_THEME", "catppuccin-macchiato-dark-cursors")
hl.env("HYPRCURSOR_SIZE", "28") hl.env("HYPRCURSOR_SIZE", "32")
hl.env("ELECTRON_OZONE_PLATFORM_HINT", "auto") hl.env("ELECTRON_OZONE_PLATFORM_HINT", "auto")
hl.env("QT_AUTO_SCREEN_SCALE_FACTOR", "1") hl.env("QT_AUTO_SCREEN_SCALE_FACTOR", "1")
+4 -3
View File
@@ -1,7 +1,7 @@
hl.monitor({ hl.monitor({
output = "eDP-1", output = "eDP-1",
mode = "2880x1800@120", mode = "preferred@120",
position = "0x0", position = "auto",
scale = 1.125, scale = 1.125,
bitdepth = 10, bitdepth = 10,
cm = "srgb", cm = "srgb",
@@ -9,7 +9,8 @@ hl.monitor({
hl.monitor({ hl.monitor({
output = "", output = "",
mode = "highres@highrr", -- mirror = "eDP-1",
mode = "preferred",
position = "auto", position = "auto",
scale = 1, scale = 1,
bitdepth = 10, bitdepth = 10,
+21 -83
View File
@@ -32,9 +32,9 @@ hl.config({
}, },
gestures = { workspace_swipe_touch = true }, gestures = { workspace_swipe_touch = true },
general = { general = {
gaps_in = 2, gaps_in = 0,
gaps_out = 2, gaps_out = 0,
border_size = 2, border_size = 1,
col = { col = {
active_border = { active_border = {
colors = { colors = {
@@ -79,95 +79,33 @@ hl.config({
dwindle = { preserve_split = true }, dwindle = { preserve_split = true },
}) })
local animations = { local animations = {
{ leaf = "border", enabled = true, speed = 4, bezier = "linear" }, { leaf = "border", enabled = true, speed = 2, bezier = "linear" },
{ { leaf = "fadeOut", enabled = true, speed = 2, bezier = "default" },
leaf = "borderangle", { leaf = "fadeIn", enabled = true, speed = 3, bezier = "default" },
enabled = false,
speed = 3,
bezier = "linear",
style = "loop",
},
{ leaf = "fadeOut", enabled = true, speed = 3, bezier = "default" },
{ leaf = "fadeIn", enabled = true, speed = 4, bezier = "default" },
{ leaf = "fadeLayers", enabled = true, speed = 1, bezier = "default" }, { leaf = "fadeLayers", enabled = true, speed = 1, bezier = "default" },
{ leaf = "fadePopups", enabled = true, speed = 1, bezier = "default" }, { leaf = "fadePopups", enabled = true, speed = 1, bezier = "default" },
{ leaf = "global", enabled = true, speed = 6, bezier = "default" }, { leaf = "global", enabled = true, speed = 3, bezier = "default" },
{ { leaf = "layers", enabled = true, speed = 3, bezier = "cubic-bezier", style = "fade" },
leaf = "layers", { leaf = "windows", enabled = true, speed = 2, bezier = "wind", style = "popin" },
enabled = true, { leaf = "windowsIn", enabled = true, speed = 2, bezier = "winIn", style = "popin 90%" },
speed = 5, { leaf = "windowsOut", enabled = true, speed = 2, bezier = "winOut", style = "popin 90%" },
bezier = "cubic-bezier", { leaf = "windowsMove", enabled = true, speed = 1, bezier = "wind", style = "slide" },
style = "fade", { leaf = "workspaces", enabled = true, speed = 3, bezier = "default" },
},
{
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 = "wind", { name = "winIn", config = { type = "bezier", points = { { 0.1, 1.0 }, { 0.1, 1 } } } },
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 = "winOut", config = { type = "bezier", points = { { 1, 0.35 }, { 1, 1 } } } }, { name = "winOut", config = { type = "bezier", points = { { 1, 0.35 }, { 1, 1 } } } },
{ name = "linear", config = { type = "bezier", points = { { 1, 1 }, { 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 = "cubic-bezier", { name = "easeOutQuint", config = { type = "bezier", points = { { 0.23, 1 }, { 0.32, 1 } } } },
config = { type = "bezier", points = { { 0.215, 0.61 }, { 0.355, 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 = "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 = "quick", config = { type = "bezier", points = { { 0.15, 0 }, { 0.1, 1 } } } },
{ { name = "easy", config = { type = "spring", mass = 1, stiffness = 71.2633, dampening = 15.8273644 } },
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