Skip to content

Open and close wofi with the same binding - #58

Merged
dhh merged 2 commits into
omacom:devfrom
martinstork:toggle-wofi
Jul 4, 2025
Merged

dhh merged 2 commits into
omacom:devfrom
martinstork:toggle-wofi

Conversation

@martinstork

@martinstork martinstork commented Jul 4, 2025 •

Copy link
Copy Markdown
Contributor

This replicates macOS spotlight behavior when pressing the binding for a second time

@dhh

dhh commented Jul 4, 2025

Copy link
Copy Markdown
Contributor

Yeah, that's way better!

@dhh
dhh changed the base branch from master to dev July 4, 2025 18:50
@dhh
dhh merged commit c53125b into omacom:dev Jul 4, 2025
@dhh dhh mentioned this pull request Jul 4, 2025
rdoupe added a commit to omarchy-asus/omarchy that referenced this pull request Oct 18, 2026
The hybrid video decode pins are checked at Hyprland start and refreshed
when one names a device that is gone or is the NVIDIA GPU. That check
looked at every by-path render node setting, so a user who chose the
NVIDIA GPU on purpose with a /dev/dri/by-path/pci-...-render override had
it deleted at the next login and replaced with the iGPU pin, against the
promise to keep settings the user already has.

Omarchy now writes a marker comment on the line above each pin it adds,
the --render-node-override line in the Chromium-family flags files and
the vaapi-device line in mpv.conf. Only a pin right under that marker is
checked at start, dropped (with its marker) when stale and written again.
Any other render node setting is the user's, whatever device it names,
and neither triggers the refresh nor is touched by it. Deleting the
marker hands a pin over to the user.

Pins written before this change carry no marker and are treated as the
user's: they are left alone rather than guessed at. The change has not
been released, so only test installs have them.

When a stale mpv pin is dropped, the new one goes back under Omarchy's
mpv comment instead of above it.

Found by ai-review on omarchy-asus PR omacom#58.
rdoupe added a commit to omarchy-asus/omarchy that referenced this pull request Oct 18, 2026
The hybrid video decode pins are checked at Hyprland start and refreshed
when one names a device that is gone or is the NVIDIA GPU. That check
looked at every by-path render node setting, so a user who chose the
NVIDIA GPU on purpose with a /dev/dri/by-path/pci-...-render override had
it deleted at the next login and replaced with the iGPU pin, against the
promise to keep settings the user already has.

Omarchy now writes a marker comment on the line above each pin it adds,
the --render-node-override line in the Chromium-family flags files and
the vaapi-device line in mpv.conf. Only a pin right under that marker is
checked at start, dropped (with its marker) when stale and written again.
Any other render node setting is the user's, whatever device it names,
and neither triggers the refresh nor is touched by it. Deleting the
marker hands a pin over to the user.

Pins written before this change carry no marker and are treated as the
user's: they are left alone rather than guessed at. The change has not
been released, so only test installs have them.

When a stale mpv pin is dropped, the new one goes back under Omarchy's
mpv comment instead of above it.

Found by ai-review on omarchy-asus PR omacom#58.
rdoupe added a commit to omarchy-asus/omarchy that referenced this pull request Oct 18, 2026
The hybrid video decode pins are checked at Hyprland start and refreshed
when one names a device that is gone or is the NVIDIA GPU. That check
looked at every by-path render node setting, so a user who chose the
NVIDIA GPU on purpose with a /dev/dri/by-path/pci-...-render override had
it deleted at the next login and replaced with the iGPU pin, against the
promise to keep settings the user already has.

Omarchy now writes a marker comment on the line above each pin it adds,
the --render-node-override line in the Chromium-family flags files and
the vaapi-device line in mpv.conf. Only a pin right under that marker is
checked at start, dropped (with its marker) when stale and written again.
Any other render node setting is the user's, whatever device it names,
and neither triggers the refresh nor is touched by it. Deleting the
marker hands a pin over to the user.

Pins written before this change carry no marker and are treated as the
user's: they are left alone rather than guessed at. The change has not
been released, so only test installs have them.

When a stale mpv pin is dropped, the new one goes back under Omarchy's
mpv comment instead of above it.

Found by ai-review on omarchy-asus PR omacom#58.
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