2.home-manager/tests/modules/services/hyprland/lua-config.lua
2026-05-13 16:13:28 -05:00

106 lines
2.2 KiB
Lua

-- Generated by Home Manager.
-- See https://wiki.hypr.land/Configuring/Start/
hl.curve("smoothIn", {
["points"] = {
{
0.25,
1
},
{
0.5,
1
}
},
["type"] = "bezier"
})
hl.animation({
["bezier"] = "smoothIn",
["enabled"] = true,
["leaf"] = "border",
["speed"] = 2
})
hl.animation({
["bezier"] = "smoothIn",
["enabled"] = true,
["leaf"] = "windows",
["speed"] = 3,
["style"] = "popin 80%"
})
hl.bind("SUPER + Q", (hl.dsp.window.close()), {
["locked"] = true
})
hl.bind("SUPER + RETURN", (hl.dsp.exec_cmd("kitty")))
hl.config({
["ecosystem"] = {
["enforce_permissions"] = true
},
["input"] = {
["kb_layout"] = "ro",
["touchpad"] = {
["scroll_factor"] = 0.3
}
}
})
hl.device({
["enabled"] = true,
["name"] = "some:device"
})
hl.env("QT_QPA_PLATFORMTHEME", "qt5ct")
hl.env("XCURSOR_SIZE", "24")
hl.exec_cmd("hyprctl setcursor Bibata 24")
hl.gesture({
["action"] = "workspace",
["direction"] = "left",
["fingers"] = 3
})
hl.layer_rule({
["blur"] = false,
["match"] = {
["namespace"] = "waybar"
}
})
hl.monitor({
["mode"] = "highres",
["output"] = "desc:Monitor",
["position"] = "auto-right",
["scale"] = 1,
["vrr"] = 1
})
hl.on("hyprland.start", (function()
hl.exec_cmd("waybar")
end
))
hl.permission({
["binary"] = "^org\\.example\\..*",
["mode"] = "deny",
["type"] = "screencopy"
})
hl.window_rule({
["border_size"] = 2,
["match"] = {
["class"] = "kitty"
}
})
hl.workspace_rule({
["monitor"] = "DP-1",
["workspace"] = "1"
})
hl.on("hyprland.start", function()
hl.exec_cmd("@dbus@/bin/dbus-update-activation-environment --systemd DISPLAY HYPRLAND_INSTANCE_SIGNATURE WAYLAND_DISPLAY XDG_CURRENT_DESKTOP XDG_SESSION_TYPE && systemctl --user stop hyprland-session.target && systemctl --user start hyprland-session.target")
hl.exec_cmd("hyprctl plugin load /path/to/plugin1")
hl.exec_cmd("hyprctl plugin load /nix/store/00000000000000000000000000000000-foo/lib/libfoo.so")
end)
local mainMod = "SUPER"
local terminal = "kitty"
hl.define_submap("resize", function()
hl.bind("right", hl.dsp.window.move({ direction = "right" }))
end)
hl.on("hyprland.start", function()
hl.exec_cmd("waybar")
end)
hl.config({
decoration = {
rounding = 4,
},
})