A lightweight Activity Watcher module to track the active workspace, each logged activity will have the workspace context.
- Tested on Ubuntu/Debian GNOME
- Clone
git clone https://github.com/nya1/aw-watcher-workspace.git`
- Install modules
yarn install
- Start the watcher
yarn run start
Fields sent to AW:
-
title
Focused window title -
app
Focused app name -
workspace
Active workspace name
There are two ways
- GNOME Tweaks application
-
Extensions
->Workspace indicator
-
- Terminal
gsettings set org.gnome.desktop.wm.preferences workspace-names "['games', 'university', 'work-acmecorp']"
-
AW_WATCHER_WORKSPACE_IGNORE
- type: stringified array
- default: '[]'
- description: completly ignore the workspace names provided, no data will be sent
-
AW_WATCHER_WORKSPACE_REDACT
- type: stringified array
- default: '[]'
- description: redact the window title (field
title
) of the workspace names provided, the keywordexcluded
will be used instead of the original value
-
AW_WATCHER_WORKSPACE_CLIENT_NAME
- type: string
- default: 'aw-watcher-workspace'
- description: override the default client name, (hostname will be always appended)
-
AW_WATCHER_WORKSPACE_TESTING
- type: boolean
- default: (not set)
- description: enable the client testing mode
- official
aw-client
npm module to send the data to AW server
-
xdotool
to get the focused window -
xprop
to get the list of workspace names, focused window information -
gdbus
as a fallback toxdotool
to get the focused app (e.g.xdotool
fails when the gnome terminal is focused)