Refactor installation process and enhance configuration management; add locale detection and autostart support

This commit is contained in:
2026-07-06 00:01:07 +02:00
parent db651dff28
commit 3ee00f2de3
11 changed files with 240 additions and 80 deletions
+4 -9
View File
@@ -1,22 +1,17 @@
hl.monitor({ output = "", mode = "preferred", position = "auto", scale = 1 })
hl.on("hyprland.start", function()
hl.exec_cmd("waybar")
hl.exec_cmd("mako")
hl.exec_cmd("hyprpaper")
end)
local mainMod = "SUPER"
hl.bind(mainMod .. " + T", hl.dsp.exec_cmd("kitty"))
hl.bind(mainMod .. " + D", hl.dsp.exec_cmd("wofi --show drun"))
hl.bind(mainMod .. " + D", hl.dsp.exec_cmd("hyprlauncher"))
hl.bind(mainMod .. " + Q", hl.dsp.window.close())
hl.bind(mainMod .. " + M", hl.dsp.exit())
hl.config({
input = { kb_layout = "us" },
general = { gaps_in = 4, gaps_out = 8, border_size = 2 },
})
-- optional, machine-generated, only present when install detected an NVIDIA GPU
-- machine-generated by src/install.ts based on chosen packages/detected hardware/locale
pcall(require, "conf.d.autostart")
pcall(require, "conf.d.locale")
pcall(require, "conf.d.nvidia")
@@ -0,0 +1,15 @@
general {
grab_focus = true
}
cache {
enabled = true
}
finders {
default_finder = desktop
}
ui {
window_size = 500 300
}
-5
View File
@@ -1,5 +0,0 @@
configuration {
modi: "drun,run";
show-icons: true;
display-drun: "Apps";
}
-5
View File
@@ -1,5 +0,0 @@
width=600
height=400
location=center
show=drun
prompt=Search...