Skip to content

Drop app bindings when their launcher entry is removed - #6489

Open
husamemadH wants to merge 1 commit into
basecamp:quattrofrom
husamemadH:webapp-removal-drops-keybinding
Open

Drop app bindings when their launcher entry is removed#6489
husamemadH wants to merge 1 commit into
basecamp:quattrofrom
husamemadH:webapp-removal-drops-keybinding

Conversation

@husamemadH

Copy link
Copy Markdown
Contributor

Description

Removing a web app from the launcher left its keybinding working, so SUPER + SHIFT + Y still opened YouTube after removal. Bindings now declare the launcher entry they belong to and are skipped when it is gone, and the install/remove commands reload Hyprland so it takes effect immediately.

Motivation

Fixes #6468.

Copilot AI review requested due to automatic review settings August 1, 2026 16:30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Makes application keybindings follow launcher availability and reloads Hyprland after launcher changes.

Changes:

  • Adds launcher-entry checks to application bindings.
  • Reloads Hyprland after web app and TUI installation/removal.
  • Adds binding and web app removal tests.

Tip

If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.

Reviewed changes

Copilot reviewed 4 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
default/hypr/helpers.lua Filters bindings by launcher availability.
default/hypr/bindings/applications.lua Associates bindings with desktop entries.
bin/omarchy-webapp-install Reloads Hyprland after installation.
bin/omarchy-webapp-remove Reloads Hyprland after removal.
bin/omarchy-tui-install Reloads Hyprland after installation.
bin/omarchy-tui-remove Reloads Hyprland after removal.
test/shell.d/hyprland-default-config-test.sh Tests launcher-dependent bindings.
test/shell.d/webapp-remove-test.sh Tests removal and configuration reload.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread default/hypr/helpers.lua
Comment on lines +73 to +75
function o.launcher_entry_exists(name)
return file_exists((os.getenv("HOME") or "") .. "/.local/share/applications/" .. name .. ".desktop")
end
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.

Removing webapps does not remove keybinds for launching

2 participants