Skip to content

Commit

Permalink
Pin AW dependencies to a specific revision
Browse files Browse the repository at this point in the history
  • Loading branch information
2e3s committed May 15, 2023
1 parent 78c6618 commit ab3fd1c
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 16 deletions.
34 changes: 23 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ anyhow = { workspace = true }
signal-hook = "0.3.15"

ksni = {version = "0.2.0", optional = true}
aw-server = { git = "https://github.com/ActivityWatch/aw-server-rust.git", optional = true }
aw-datastore = { git = "https://github.com/ActivityWatch/aw-server-rust.git", optional = true }
aw-server = { git = "https://github.com/ActivityWatch/aw-server-rust.git", optional = true, rev = "49b2026" }
aw-datastore = { git = "https://github.com/ActivityWatch/aw-server-rust.git", optional = true, rev = "49b2026" }
smol = {version = "1.3.0", optional = true }
async-compat = { version = "0.2.1", optional = true }
webbrowser = { version = "0.8.9", optional = true }
Expand Down
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ To track your activities in browsers install the plugin for your browser from

The executable can be bundled with a tray icon, ActivityWatch server and, optionally, Web UI (if steps 1-2 are done):

1. Clone and follow the instruction in [ActivityWatch/aw-webui](https://github.com/ActivityWatch/aw-webui)
1. Clone and follow the instruction in [ActivityWatch/aw-webui@839366e](https://github.com/ActivityWatch/aw-webui/commit/839366e66f859faadd7f9128de3bea14b25ce4ae)
to build the "dist" folder,
1. Then zip it with `zip -r dist.zip aw-webui/dist`.
2. Build the executable with `--features=bundle`.
Expand Down Expand Up @@ -112,9 +112,13 @@ Matches are case sensitive regular expressions between implici ^ and $:
- `word` is an exact match.
- Use escapes `\` to match special characters, e.g. `org\.kde\.Dolpin`

#### Captures

The replacements in filters also support regexp captures.
A captures takes a string in parentheses from the match and replaces `$N` in the replacement, where `N` is the number of parentheses.
Example filter to remove the changed file indicator in Visual Studio Code:
A capture takes a string in parentheses from the match and replaces `$N` in the replacement.
Example to remove the changed file indicator in Visual Studio Code:
- Before: "● file_config.rs - awatcher - Visual Studio Code"
- After: "file_config.rs - awatcher - Visual Studio Code"
```toml
[[awatcher.filters]]
match-app-id = "code"
Expand All @@ -123,6 +127,8 @@ match-title = "● (.*)"
replace-title = "$1"
```

#### Debugging app-id and title

Run the command with "debug" or "trace" verbosity and without reporting to server in the terminal
to see what application names and titles are reported to the server.
```
Expand Down

0 comments on commit ab3fd1c

Please sign in to comment.