Repository navigation
Add Limine + Snapper support - #998
Merged
Merged
Conversation
dhh
reviewed
Aug 23, 2025
| @@ -1,5 +1,6 @@ | |||
| export OMARCHY_PATH=$HOME/.local/share/omarchy | |||
| export PATH=$OMARCHY_PATH/bin/:$PATH | |||
| export TERMINAL=alacritty | |||
Collaborator
Author
There was a problem hiding this comment.
limine-snapper-sync has a built in function that shows a notification if you boot into a snapshot. If you click the notification, it'll start the restore process but it needs to have this in place to know what terminal to run.
dhh
reviewed
Aug 23, 2025
| invisible=false | ||
|
|
||
|
|
||
| [urgency=critical] |
Contributor
There was a problem hiding this comment.
Let's pull all these out into a separate PR
Collaborator
Author
There was a problem hiding this comment.
Before I pull this; this is also directly related to the restore snapshot notification from limine-snapper-sync. Otherwise, it dismisses pretty quickly.
Contributor
There was a problem hiding this comment.
Ahh okay. Thought it was just included by a mistake. Fine to keep then.
OmarSkalli
pushed a commit
to OmarSkalli/omarchy
that referenced
this pull request
Aug 26, 2025
* Persist urgent notifications * Create omarchy-snapshot * Create snapshot before pulling * Extract alternative bootloader configs * Add limine-snapper config * Fix check * Update login scripts * Make chroot friendly * Extract cmdline instead of using blkid due to error * Add restore command * Export $TERMINAL so we get clickable restore notifications * Remove sync -- causes errors...we have nothing to sync yet * Executable * Minor cleanup and compatibility for non-ISO * Give login its own section * Give no-arg guard and inline commands --------- Co-authored-by: David Heinemeier Hansson <[email protected]>
jakeprime
pushed a commit
to jakeprime/omarchy
that referenced
this pull request
Aug 26, 2025
* Persist urgent notifications * Create omarchy-snapshot * Create snapshot before pulling * Extract alternative bootloader configs * Add limine-snapper config * Fix check * Update login scripts * Make chroot friendly * Extract cmdline instead of using blkid due to error * Add restore command * Export $TERMINAL so we get clickable restore notifications * Remove sync -- causes errors...we have nothing to sync yet * Executable * Minor cleanup and compatibility for non-ISO * Give login its own section * Give no-arg guard and inline commands --------- Co-authored-by: David Heinemeier Hansson <[email protected]>
gocs
pushed a commit
to gocs/omarchy
that referenced
this pull request
Aug 28, 2025
* Persist urgent notifications * Create omarchy-snapshot * Create snapshot before pulling * Extract alternative bootloader configs * Add limine-snapper config * Fix check * Update login scripts * Make chroot friendly * Extract cmdline instead of using blkid due to error * Add restore command * Export $TERMINAL so we get clickable restore notifications * Remove sync -- causes errors...we have nothing to sync yet * Executable * Minor cleanup and compatibility for non-ISO * Give login its own section * Give no-arg guard and inline commands --------- Co-authored-by: David Heinemeier Hansson <[email protected]>
gocs
pushed a commit
to gocs/omarchy
that referenced
this pull request
Aug 28, 2025
* Persist urgent notifications * Create omarchy-snapshot * Create snapshot before pulling * Extract alternative bootloader configs * Add limine-snapper config * Fix check * Update login scripts * Make chroot friendly * Extract cmdline instead of using blkid due to error * Add restore command * Export $TERMINAL so we get clickable restore notifications * Remove sync -- causes errors...we have nothing to sync yet * Executable * Minor cleanup and compatibility for non-ISO * Give login its own section * Give no-arg guard and inline commands --------- Co-authored-by: David Heinemeier Hansson <[email protected]>
gocs
pushed a commit
to gocs/omarchy
that referenced
this pull request
Aug 28, 2025
* Persist urgent notifications * Create omarchy-snapshot * Create snapshot before pulling * Extract alternative bootloader configs * Add limine-snapper config * Fix check * Update login scripts * Make chroot friendly * Extract cmdline instead of using blkid due to error * Add restore command * Export $TERMINAL so we get clickable restore notifications * Remove sync -- causes errors...we have nothing to sync yet * Executable * Minor cleanup and compatibility for non-ISO * Give login its own section * Give no-arg guard and inline commands --------- Co-authored-by: David Heinemeier Hansson <[email protected]>
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.
While these changes are targeted for the ISO, they actually do have compatibility with someone just choosing Limine as well. This relies directly on omacom/omarchy-configurator#4 and omacom/omarchy-iso#23 in order to test it end-to-end.
With the ISO branch checked out or PR merged, this command will run the whole thing.
Limine
Limine is brought in here as the standard that should be used going forward. As such, I've split out the login files a touch to place all of the systemd, GRUB, etc. in their own file. Ultimately; I'd like to drop this file altogether and only support Limine as a bootloader going forward.
When installed via the ISO, we add the EFI entry for the user so they'll go straight into the OS and only see the bootloader if they hit esc, del, etc to access their UEFI menu, and select Limine.
Limine is also configured with default fallback so that if a user's NVRAM is cleared altogether, they should still be able to boot.
Limine Styling
Limine doesn't give a lot of options when it comes to the look / feel. I chose to pass in the colors for Tokyo Night for consistency elsewhere, and to have snapshots show their format as just the date instead of ID + date. I've looked at the code for limine-snapper-sync and it looks like it'd be pretty easy to add some options there so there may be some opportunity to upstream some more robust snapshot naming so we could have the version number in the actual title instead of down in the bottom left.
You can remove the indention but it doesn't remove the arrows or collapsing and is honestly really confusing and messy looking to me so I left the indention.
We can add a background image if we want but that's about the extent of our options that I've been able to find. However, given that the bootloader is only to be seen if you need to boot a snapshot at this point, I feel like it's OK for it to be a little more utilitarian.
Snapshots
Snapshots are brought in with Snapper and limited to 5 with the default hourly snapshots shut off. When an
omarchy-updateis ran, we snapshot before the run so that we can capture that version in the comment for reference. You can see that reference in the bottom left corner from the bootloader.When booting into a snapshot, a notification appears and is not dismissed (hence mako.ini updates). If clicked, this will start the restoration process. (Note: exporting the
TERMINALvar is to make this work with the terminal detection of limine-snapper-sync.omarchy-snapshotwas added as the central tool to allow us to create / restore snapshots. I anticipate this tooling can expand over time but it's simple for now.Fixed #722
Bonus: Move keyboard hook up
This now fixes #214 on Limine by moving the keyboard entry up before the autodetect which we found solves the issue with this particular keyboard.