feat: add omarchy-install-window-restore#5425
Open
TimHerb2005 wants to merge 1 commit intobasecamp:devfrom
Open
feat: add omarchy-install-window-restore#5425TimHerb2005 wants to merge 1 commit intobasecamp:devfrom
TimHerb2005 wants to merge 1 commit intobasecamp:devfrom
Conversation
Adds an installer script for Window Restore — a tool that saves closed windows to a history stack so they can be restored via keybinding. SUPER+W closes a window and saves it (instead of killactive). SUPER+R restores the last closed window. Two modes: - Relaunch (default): kills the process, relaunches on restore - Hide: moves the window to an invisible workspace, restores instantly with full state Works for all app types: browsers, PWAs, AppImages, editors, terminals. The feature is implemented as a separate AUR package: https://github.com/TimHerb2005/omarchy-window-restore https://aur.archlinux.org/packages/omarchy-window-restore-git This script installs that package and activates it for the current user. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Copilot wasn't able to review any files in this pull request.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
What does this PR do?
Adds
omarchy-install-window-restore— an installer script for Window Restore, a keybinding-based tool that saves closed windows to a history stack so they can be restored.How it works
SUPER+Wcloses a window and saves it to history (instead of justkillactive)SUPER+Rrestores the last closed windowSUPER+SHIFT+Rrestores all closed windows at onceSUPER+ALT+Ropens a picker menu to choose which window to restoreSUPER+CTRL+Ropens a settings menu (mode, max windows, exclusions, etc.)SUPER+ALT+Wcloses permanently without saving (original killactive behavior)Two modes
Switch between modes anytime via
SUPER+CTRL+R.App support
Works for all app types: browsers, PWAs (Teams, ChatGPT, etc.), AppImages, editors, terminals. Excludes btop by default.
Implementation
The feature is a separate AUR package to keep it opt-in:
The
omarchy-install-window-restorescript in this PR:omarchy-pkg-aur-addbindings.conf, installs scripts to~/.local/bin/, creates default config)All keybindings are automatically visible in
SUPER+K(keybinding menu) since they usebinddwith descriptions.How to test
omarchy-install-window-restore # then press SUPER+W to close a window, SUPER+R to restore itChecklist
omarchy-install-*scriptsomarchy-uninstall-window-restoreremoves everything