Skip to content

feat: add omarchy-install-window-restore#5425

Open
TimHerb2005 wants to merge 1 commit intobasecamp:devfrom
TimHerb2005:add-window-restore-installer
Open

feat: add omarchy-install-window-restore#5425
TimHerb2005 wants to merge 1 commit intobasecamp:devfrom
TimHerb2005:add-window-restore-installer

Conversation

@TimHerb2005
Copy link
Copy Markdown

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+W closes a window and saves it to history (instead of just killactive)
  • SUPER+R restores the last closed window
  • SUPER+SHIFT+R restores all closed windows at once
  • SUPER+ALT+R opens a picker menu to choose which window to restore
  • SUPER+CTRL+R opens a settings menu (mode, max windows, exclusions, etc.)
  • SUPER+ALT+W closes permanently without saving (original killactive behavior)

Two modes

Mode Description
Relaunch (default) Kills the process, relaunches on restore — low memory usage
Hide Moves window to invisible workspace, restores instantly with full state (YouTube keeps playing, tabs stay open)

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-restore script in this PR:

  1. Installs the AUR package via omarchy-pkg-aur-add
  2. Runs the package's activation step (adds keybindings to bindings.conf, installs scripts to ~/.local/bin/, creates default config)

All keybindings are automatically visible in SUPER+K (keybinding menu) since they use bindd with descriptions.

How to test

omarchy-install-window-restore
# then press SUPER+W to close a window, SUPER+R to restore it

Checklist

  • Tested locally on Omarchy / Hyprland
  • Follows the same pattern as other omarchy-install-* scripts
  • Keybindings visible in SUPER+K
  • Fully reversible: omarchy-uninstall-window-restore removes everything

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>
Copilot AI review requested due to automatic review settings April 24, 2026 09:34
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants