Add option to perform all tweaks

This commit is contained in:
2025-10-12 15:12:03 -04:00
parent 7450de89ae
commit 28a8b46af1
5 changed files with 83 additions and 23 deletions
+9 -1
View File
@@ -6,8 +6,13 @@ import (
func configurations() {
for {
var choice int
if performAllTweaks {
choice = 2
} else {
choice = front.InputMenuGen("Custom config:", []string{"BACK", "ALL", "shell profile", "makepkg", "pacman"})
}
var doAll bool
choice := front.InputMenuGen("Custom config:", []string{"BACK", "ALL", "shell profile", "makepkg", "pacman"})
switch choice {
case 1:
return
@@ -35,6 +40,9 @@ func configurations() {
writeFile(mountPoint+"/etc/pacman.d/hooks/paccache-clean.hook", pacmanHookClean, "root", 0644)
writeFile(mountPoint+"/etc/pacman.d/hooks/nvidia.hook", pacmanHookNvidia, "root", 0644)
}
if performAllTweaks {
break
}
}
}