Share your fav ActivityWatch RegEx

AW is the first time that I’ve really dipped more than a toe into Regex.It’s kinda fun finding workarounds for dynamic window titles.

One that I recently created was: \w?\/\w?

  • GitHub - Initially created for since most GitHub repos no longer have the phrase ‘GitHub’ in the Window title Ie: Activitywatch/activitywatch
  • GitLab - They also use the slash, but they Insert a space before each word ie firefish / firefish
  • Codeberg - Matches Github convention ie: teddit/teddit
1 Like