Files
DankMaterialShell/quickshell/Modals
447997b9ec launcher: add vpn connections as a search provider (#3391)
* launcher: add vpn connections as a search provider

Adds a dms_vpn built-in launcher plugin that lists every configured VPN
profile and toggles it on enter. Connected rows show a lock icon and a
Connected badge, in-progress rows show Connecting, everything else shows
a crossed-out key.

Profiles come from the network state the shell already fetches at
startup, so there is no new timer, process or request. The provider
returns nothing when the backend is not NetworkManager.

It ships without a trigger. A trigger prefix replaces the whole result
set, so claiming "vpn" would have hidden every application whenever
someone typed it to find their VPN client. Matching on the vpn keyword
instead keeps apps and profiles in the same list.

Co-Authored-By: Claude Opus 5 <[email protected]>

* launcher: hide vpn profiles on the home view without a trigger

Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>

* launcher: list vpn profiles when browsing the plugin

The empty query guard also applied when opening VPN from the Browse
section, so the plugin view came up empty. The plugin filter path now
opts out of the guard, while the home view still hides the profiles.

Co-Authored-By: Claude Opus 5 <[email protected]>

* launcher: stop matching vpn profiles on connect and disconnect

Keywords match by substring, so "connect" also matched "disconnect" and
listed connected profiles too. Picking one of those disconnected it.

Co-Authored-By: Claude Opus 5 <[email protected]>

---------

Co-authored-by: Claude Opus 5 <[email protected]>
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
2026-09-15 12:41:14 -04:00
..