One block for Multi Apps (Wireguard Up)

by Gene Liang

Version 1 (October 13, 2025)

Download (39 downloads)

Inspired by reddit.
Foreground app determined by formula with multiple desired package names.
Template,
- Home Assistant
- DS Cam
- DS Photos
- DS Mail Plus

With apps above in foreground, turn on Wireguard Tunnel If not on assigned Wi-Fi SSID and turn off Wireguard Tunnel when the app quit foreground.

Input Variables
- Package Names
- SSID
- WG tunnel name