Skip to content

Commit

Permalink
[#15] extended app and keyboard matching
Browse files Browse the repository at this point in the history
inputs from FlowTeams-study, Isabelle, Rize
  • Loading branch information
casaout committed Apr 15, 2024
1 parent a5de027 commit eeedab2
Show file tree
Hide file tree
Showing 7 changed files with 233 additions and 42 deletions.
12 changes: 9 additions & 3 deletions typescript/src/determineActivity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,18 @@ export default function determineActivity(
if (isActivity(Activity.ReadWriteDocument, windowTitle, process))
return Activity.ReadWriteDocument;

if (isActivity(Activity.Design, windowTitle, process))
return Activity.Design;

if (isActivity(Activity.GenerativeAI, windowTitle, process))
return Activity.GenerativeAI;

if (isActivity(Activity.InstantMessaging, windowTitle, process))
return Activity.InstantMessaging;

if (isActivity(Activity.SocialMedia, windowTitle, process))
return Activity.SocialMedia;

if (isBrowser(process)) {
if (isWebsiteWorkRelated(windowTitle))
return Activity.WorkRelatedBrowsing;
Expand All @@ -118,9 +127,6 @@ export default function determineActivity(
if (isActivity(Activity.OtherRdp, windowTitle, process))
return Activity.OtherRdp;

if (isActivity(Activity.Gaming, windowTitle, process))
return Activity.Gaming;

if (isActivity(Activity.Other, windowTitle, process)) return Activity.Other;

// if nothing matched, return Unknown
Expand Down
Loading

0 comments on commit eeedab2

Please sign in to comment.