source single startup file instead of inlining Hyprland config or lua file - #80
Open
notcandy001 wants to merge 4 commits into
Open
source single startup file instead of inlining Hyprland config or lua file#80notcandy001 wants to merge 4 commits into
notcandy001 wants to merge 4 commits into
Conversation
Brainitech
requested changes
Aug 24, 2026
Brainitech
left a comment
Owner
There was a problem hiding this comment.
Everything Looks good, but I suggest you retain the comments removed in install-arch.sh
Contributor
Author
|
done 👍🏽 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Replaces the inline exec-once (hyprland.conf) / hl.on (hyprland.lua) block that
the installer appended into the user's Hyprland config with a single-line
injection instead.
dots-extra/templates/startup.conf.tpl/startup.lua.tpl. The installer renders these (substituting the detectedkeyboard layout) to
~/.config/hypr/brain-shell-startup.conf/.lua,and injects just one line into the user's own config:
source = $HOME/.config/hypr/brain-shell-startup.confdofile(os.getenv("HOME") .. "/.config/hypr/brain-shell-startup.lua")>>>/<<<markers so re-running theinstaller finds and replaces it instead of duplicating it on reinstall.
installs, so upgrading from an older Brain Shell leaves a clean config.
localectl, falling back to thelive
hyprctldevice list when run inside an active Hyprland session),baked into the generated startup file's
inputblock.Type of Change
Testing Checklist
Related Issues
(link the issue/discussion this addresses, if any)