Skip to content

Commit

Permalink
chore: update example config
Browse files Browse the repository at this point in the history
  • Loading branch information
black-desk committed Nov 5, 2024
1 parent 8c58fef commit 45b64fd
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions misc/config/example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,17 +91,23 @@ rules:
# To make these rules working across desktop environments,
# please take a look on https://systemd.io/DESKTOP_ENVIRONMENTS/.
# NOTE:
# | Desktop Environment | Launcher |
# |---------------------|-----------|
# | GNOME | `"gnome"` |
# | dde | `"DDE"` |
# | KDE | none |
# So we should use `(?:-(?:gnome|DDE))?` to match `-<launcher>`
# | Desktop Environment | Launcher |
# |---------------------|-------------|
# | GNOME | `"gnome"` |
# | dde | `"DDE"` |
# | KDE | none |
# | flatpak | `"flatpak"` |
# So we should use
# ```
# \/user\.slice\/user-\d+\.slice\/user@\d+\.service\/app\.slice\/app(?:-(?:gnome|DDE|flatpak))?-APPID(?:-.+\.scope|(?:@.+)?\.service)
# ```
# to match application named `APPID`.
# Check https://regex101.com/r/BgZcws/2 for example application cgroup names.

# https://parsec.app/
# `parsec` should always connect to network directly.
- match: |-
\/user\.slice\/user-\d+\.slice\/user@\d+\.service\/app\.slice\/app(?:-(?:gnome|DDE))?-parsecd-\d+\.(?:service|scope)
\/user\.slice\/user-\d+\.slice\/user@\d+\.service\/app\.slice\/app(?:-(?:gnome|DDE|flatpak))?-(?:parsecd|com\.parsecgaming\.parsec)(?:-.+\.scope|(?:@.+)?\.service)
direct: true
# For any cgroup else, TPROXY to clash-meta.
Expand Down

0 comments on commit 45b64fd

Please sign in to comment.