Class AppRules
java.lang.Object
lol.trq.orpheus.AppRules
Decides which sessions of other applications are visible. Operating system sessions include browsers, video
players and calls, and the media kind they report cannot be trusted, so the default is an allow list.
A rule is a name such as spotify. Names are split into parts at dots, underscores, hyphens, slashes,
spaces and exclamation marks, ignoring case, and a rule matches an application whose id contains the parts of the
rule in a row. So spotify matches Spotify.exe, com.spotify.client and
org.mpris.MediaPlayer2.spotify, and com.apple.music matches only that id.
A denied application is never visible. Instances are immutable; every method returns a new one.
-
Method Summary
Modifier and TypeMethodDescriptionstatic AppRulesall()Every session is visible, including browser tabs (private ones too), video players and calls.allowVideo(String... apps) Allows applications and also shows what they report as video.static AppRulesdefaults()Well-known dedicated music players only.static booleanWhether the single rulerulematches the application idappId.static AppRulesnone()Nothing is visible until allowed.booleanWhether a session ofappreportingkindmay be shown.
-
Method Details
-
defaults
Well-known dedicated music players only. Browsers and unknown applications stay hidden until allowed. -
none
Nothing is visible until allowed. -
all
Every session is visible, including browser tabs (private ones too), video players and calls. Only for programs whose user asked for exactly that. -
allow
-
deny
-
allowVideo
-
visible
-
matches
-