Skip to content
EngazanPublic

About

No description, website, or topics provided.

Resources

Contributing

Security policy

Stars

21 stars

Watchers

2 watching

Forks

Latest commit

 

History

415 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KimaiTray

A system tray companion for Kimai time tracking. Start, stop, pause and switch timers without leaving your desktop.

Download License Platforms

KimaiTray tray popup

Built with Tauri 2, React 19 and TypeScript.

Install and connect

Choose a package from the latest release.

Platform Package
macOS .dmg for Apple silicon (aarch64) or Intel (x64)
Windows (64-bit) -setup.exe (NSIS) or .msi
Linux (64-bit) .AppImage, .deb or .rpm
  1. Install or launch the package for your platform.
  2. Create a personal API token in your Kimai user profile. See the Kimai API documentation.
  3. Copy the token.
  4. Open Settings from the KimaiTray tray menu, or click Setup Connection in the popup.
  5. Select Add New Connection under Connections.
  6. Enter a connection name, your Kimai HTTPS base URL (for example, https://kimai.example.com) and the API token.
  7. Click Test & Save.

Kimai applies the account's configured permissions to API requests. On Linux, KimaiTray requires a running Secret Service implementation to save credentials.

Settings

Press Cmd+K on macOS or Ctrl+K on Windows and Linux to search in Settings. You can also press / when focus is outside a text field. Change matching settings directly in the search results.

Select a saved connection to open its Connection, Features, Integrations and Plugins tabs. Use Set as active to switch the account used for time tracking. General preferences save automatically. Use Test & Save for connection details.

Open Appearance to preview the popup theme, layout and scale as you change them. Open Tray & Menu Bar to preview the tray icon and menu bar. On supported Linux/X11 desktops, you can select the popup monitor and position visually.

Features

Time tracking

  • Start, stop and switch Kimai timers directly from the tray popup
  • Run several timers at once when your Kimai instance allows more than one active entry; each running timer gets its own card with pause and stop, and starting a task stops only the oldest timers beyond the limit
  • Failed starts and resumes caused by network or server problems, or by Kimai rejecting the current time for your account ("Validation Failed"), are queued and retried automatically with Retry now and Cancel controls, without creating duplicate timers
  • Pause multiple timers, resume any of them later or discard them
  • Optionally reveal paused-timer descriptions on hover
  • Quick-start tasks from per-connection favorites and recent entries; type to filter both lists
  • Searchable project, activity, customer and Kimai tag pickers with on-demand refresh
  • Create project-local or global activities from the new-timer form, with automatic or custom colors; the activity picker groups local activities before global ones
  • Optional notes, tags, customer filtering and a custom start time for new tasks
  • Per-connection text and URL custom fields, including required fields, for starting, viewing and editing timers; testing a connection discovers supported fields from Kimai's optional Custom Fields API while preserving manual definitions
  • Optional Creative Issue Link plugin for storing an Issue / Ticket URL in timer metadata
  • Edit the active timer's note, tags and start time
  • Edit the start and end time of completed entries when permitted by the Kimai API; edit or clear their descriptions from the right-click menu in Today or Recent tasks
  • Hide recent tasks locally or delete their time entries from Kimai
  • Today's color-coded day timeline and entry list with sorting, durations, billable status and a start-again control for completed entries
  • Fill untracked gaps between today's entries by opening a new timer with the gap's start time prefilled, when custom start time is enabled
  • Optional per-connection daily goals with required/full milestones, remaining time and an estimated finish time

Category Mode

  • Optional per-connection workflow with a configurable two-level category and activity tree, icons and colors
  • Use a default project for internal activities, and select a client project for subcategories that require one
  • Optionally assign an automatic client project per subcategory, with manual selection when it is unavailable or incompatible with the activity
  • Optionally auto-select the only subcategory in a category, starting directly or opening the project picker; unavailable activities keep their warnings visible
  • Continue the last category activity within a configurable time window after stopping
  • Import/export category configuration as JSON and synchronize categories hourly from a remote URL

Issue tracker integrations

  • GitLab, GitHub and Gitea issue linking, configured independently for each Kimai connection
  • Browse and search accessible projects/repositories and select a repository per timer
  • Search for an issue by number (for example, 42 or #42). GitLab also matches recent issues by number prefix.
  • Filter issues by state, assignee and included or excluded labels
  • Highlight and preselect issues matching the chosen Kimai project
  • Open or copy issue links and optionally insert an issue URL or title into the timer description
  • GitLab spent/estimated-time badges in the issue picker and active timer
  • Sync recorded time back to linked GitLab and Gitea issues when a timer stops; pending exports survive restarts, retry after reconnection and offer review for uncertain writes

See Issue time synchronization for export and retry behavior.

Popup keyboard controls

  • Up/Down arrows move between startable rows; Enter starts the focused task
  • Shift+Enter on a favorite or recent task opens it with changes before starting
  • Cmd/Ctrl+1–9 starts a favorite; Cmd/Ctrl+N opens a new task
  • Space pauses or resumes when no interactive control is focused
  • Typing opens the favorites/recent-task filter when available; shortcuts leave text inputs and dialogs available for normal editing

Automation and reminders

  • Configurable global shortcuts for the popup, new task, stop, pause/resume, continue last task, edit note, open Kimai and Settings
  • Idle detection with configurable threshold and actions: ask, stop at idle start, stop now or keep running; stop actions apply to every running timer
  • Automatic local idle statistics with period history, total duration and a daily chart in idle detection settings; retained for 30 days by default (configurable from 1 to 365 days). Recording runs while the app and idle detection are enabled, even without a running timer.
  • Full-screen idle prompt and optional desktop notification
  • Independently configurable options to stop all running timers when the macOS screen saver starts or the Mac is locked, both disabled by default
  • Stop timers on shutdown or sign-out in Settings → Idle Detection is off by default. When enabled, KimaiTray tries to stop all timers on the active connection within a short time limit. Timers continue during sleep. Deployments can set settings.stopTimerOnShutdown to true in settings.json. On Linux, desktop sign-out requires XDG Desktop Portal (Inhibit v3) or GNOME SessionManager support. KimaiTray can also detect shutdown and reboot through systemd-logind.
  • Configurable full-screen reminder when no timer has been running
  • Launch at login, configurable server refresh interval and one-click opening of Kimai
  • Automatic updates, manual update checks and a localized What's New screen after updates

Connections and security

  • Multiple isolated Kimai connections, including separate accounts on the same server
  • Per-connection favorites, paused timers, feature settings, caches and issue integrations
  • API and integration credentials stored in the operating system's secure credential store
  • Native HTTP broker with validated origins and pinned DNS targets for Kimai and issue-tracker requests

Appearance and desktop integration

  • Four popup layouts: Classic, Focus, Taskbar and Timeline
  • Light, dark and transparent themes, five accent colors and configurable Kimai color indicators
  • UI scaling from 85% to 160%, optional rounded corners, animations and translucency controls; popup transitions respect the system reduced-motion preference
  • Resizable tray-popup and detached-window modes
  • macOS True Tray mode hides the Dock and Cmd+Tab entry
  • On macOS, the tray popup opens on the active Space, including over full-screen apps. The Transparent theme applies to the active popup panel.
  • Custom tray icon shape, size and colors for running, paused, idle and error states
  • Configurable macOS menu-bar label (timer, project, activity or icon only) and tray left/right-click actions
  • Native context menus for timers, tasks, today's entries, issue selection, layout controls and editable text
  • Configurable popup monitor and placement on supported Linux/X11 desktops
  • Six bundled languages: English, Slovak, Czech, German, Ukrainian and Spanish, plus system-language detection
  • Native support for macOS, Windows and Linux, including X11 and supported Wayland desktops

Full-screen reminders

The optional no-timer and idle reminders can take over the screen so they are difficult to miss.

KimaiTray full-screen no-timer reminder

Deep-link automation

An installed KimaiTray can be opened from a browser or another application through the kimaitray:// protocol. The start action starts immediately, matching the normal in-app switch behavior: it stops the running Kimai timesheet, or only the oldest ones beyond the limit when the instance allows several active entries. The new action only opens a prefilled new-timer form and always requires manual confirmation.

<button id="start-kimai-timer">Start timer</button>
<script>
  document.querySelector("#start-kimai-timer").addEventListener("click", () => {
    const params = new URLSearchParams({
      connection: "work",
      project: "123",
      activity: "45",
      description: "Review pull request",
      issue: "https://git.example.com/team/project/-/issues/17",
      "custom.issue_link": "https://tickets.example.com/17",
    });
    window.location.href = `kimaitray://start?${params}`;
  });
</script>
Parameter Action Meaning
project start Required positive Kimai project ID
activity start Required positive Kimai activity ID
begin start Optional custom Kimai start date and time
label start Optional label for start and error messages
connection Both Saved KimaiTray connection ID. Defaults to the active connection.
description Both Timer description
tag Both One tag. Repeat the parameter for multiple tags.
tags Both Comma-separated tags. Can be combined with tag.
issue Both HTTP or HTTPS issue URL
custom.<name> Both Enabled custom input, addressed by metadata name or stable input ID

To get the connection ID, select the connection in Settings and click Show internal ID on its Connection tab.

An open-only example suitable for browser integrations is:

kimaitray://new?connection=work&issue=https%3A%2F%2Fgit.example.com%2Fteam%2Fproject%2F-%2Fissues%2F17

For the Creative Issue Link plugin, use custom.issue_link. When start includes issue, the selected connection must have an authenticated Git integration that can load the issue. The new form keeps the URL in a custom field or the description even if it cannot load the issue. The integration's auto-insert setting controls the preferred field. Keep API and issue tokens out of deep-link URLs.

GitLab Tampermonkey button

The installable userscript at tempermonkey/gitlab.user.js adds a Nový Kimai timer button after GitLab's small issue breadcrumb. It opens kimaitray://new with the current issue URL and displays a prefilled new-timer form; it never starts the timer automatically. Both GitLab issue URL formats (/-/issues/:iid and /-/work_items/:iid) are supported. On an issue board, the same button is added to the open work-item drawer next to its reference and copy-link action.

  1. Create a new Tampermonkey userscript and paste the contents of tempermonkey/gitlab.user.js into it.
  2. Open the Tampermonkey menu and choose KimaiTray: pridať GitLab server.
  3. Enter the GitLab base URL. Self-hosted GitLab installations and base-path URLs such as https://example.com/gitlab are supported.
  4. Repeat for additional GitLab servers. Use KimaiTray: zobraziť GitLab servery to list them or KimaiTray: odstrániť GitLab server to remove one.
  5. Optionally choose KimaiTray: nastaviť custom plugin field and enter a custom plugin metadata name. Use issue_link for the Creative Issue Link plugin; leave it empty when the plugin is disabled.

The userscript always uses the active KimaiTray connection, so select the appropriate connection in KimaiTray before opening an issue. Existing single-server settings are migrated automatically.

Because GitLab servers are configured at runtime, the userscript uses a broad @match; it only adds buttons for issue URLs matching a configured server and base path.

Build from source

Prerequisites

Tool Version
Node.js 22.22.2+ (22.x), 24.15+ (24.x) or 26+
Rust 1.95.0, pinned in rust-toolchain.toml
Tauri CLI Installed locally by npm ci

TypeScript stays on 6.0 until typescript-eslint supports 7.x. Linux uses the GTK 0.19 and GLib 0.22 bindings required by Tauri and libappindicator.

Platform-specific

macOS — Xcode Command Line Tools:

xcode-select --install

Linux (Debian/Ubuntu):

sudo apt install libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf

Windows requires Visual Studio Build Tools with the Desktop development with C++ workload and the WebView2 Runtime. The packaged installer downloads the WebView2 bootstrapper when required.

Run locally

git clone https://github.com/Engazan/KimaiTray.git
cd KimaiTray
npm ci
npm run tauri dev

The tray icon appears in your menu bar / system tray. Click it to open the popup.

Build packages

The default build creates signed updater artifacts. Set TAURI_SIGNING_PRIVATE_KEY in your shell environment before building packages. To check a local build without packaging, run npm run tauri build -- --debug --no-bundle.

# Build packages with updater artifacts for the current platform
npm run tauri build

# Build frontend only (staging/production mode)
npm run build:staging
npm run build:prod

Bundles are in src-tauri/target/release/bundle/. With an explicit --target <triple>, look in src-tauri/target/<triple>/release/bundle/.

Platform Bundle subdirectories
macOS dmg/, macos/
Windows nsis/, msi/
Linux appimage/, deb/, rpm/

Run npm run check for version and translation checks, lint, tests with coverage and the frontend build. See Contributing for the full local checks.

Environment Configuration

Three environment modes via Vite .env.* files:

File VITE_ENV VITE_LOG_LEVEL
.env.development development debug
.env.staging staging info
.env.production production warn

Create .env.local or .env.production.local for machine-specific overrides (gitignored).

Project Structure

src/                    # React frontend
  api/                  # Kimai REST API client
  categorymode/         # Configurable category-based timer workflow
  components/           # UI components
  hooks/                # Custom React hooks
  integrations/         # Issue tracker integrations
  plugins/              # Custom timer inputs and plugin metadata
  providers/            # React context providers (React Query)
  services/             # Timer operations
  tray/                 # Popup workflows, keyboard navigation and UI helpers
  settings/             # Settings UI & service
  windows/              # Tray popup, Settings, reminder and What's New windows
  shared/i18n/          # Translations (6 languages)
  utils/                # Logger, time formatting
src-tauri/              # Tauri / Rust backend
  src/lib.rs            # App setup, plugin registration
  src/main.rs           # Binary entry point
  src/tray.rs           # System tray entry point
  src/tray/             # Popup workflows, icons and native platform adapters
  src/shortcuts.rs      # Global keyboard shortcuts
  src/keychain.rs       # API token storage
  src/http.rs           # Bounded native HTTP broker
  src/idle.rs           # Platform idle detection
  src/idle_stats.rs      # Persistent local idle statistics and retention
  tauri.conf.json       # App metadata & bundle config
  capabilities/         # Permission declarations
  icons/                # App icons (icns, ico, png)
web/                    # Project landing page
contracts/              # Frontend-to-Rust IPC contract
tempermonkey/           # GitLab userscript and tests

Logging

The Rust logger writes to standard output, the webview console and the platform log directory.

  • macOS uses ~/Library/Logs/eu.engazan.kimaitray/.
  • Linux uses $XDG_DATA_HOME/eu.engazan.kimaitray/logs/. The default data directory is ~/.local/share/.
  • Windows uses %LOCALAPPDATA%\eu.engazan.kimaitray\logs\.

In the frontend, import logger from src/utils/logger.ts. Set the minimum frontend log level with VITE_LOG_LEVEL.

import { logger } from "./utils/logger";
logger.info("Timer started");

Auto-Updates

KimaiTray checks GitHub Releases for updates on startup. Automatic updates is on by default. Change it or select Check for updates under Settings → General. When automatic installation is off, the tray popup offers to install an available update. What's new opens once per installed version after an in-app update.

The release workflow signs updater artifacts and generates latest.json for tagged releases. Set the matching private key in the TAURI_SIGNING_PRIVATE_KEY secret. Set TAURI_SIGNING_PRIVATE_KEY_PASSWORD if the key is password-protected. Installed copies verify updates with the public key in src-tauri/tauri.conf.json under plugins.updater.pubkey. Existing installs need a manual upgrade if a release changes this public key and signs its updater artifacts with the new key. See the Tauri Updater documentation for signing details.

CI/CD

Verify runs on pull requests and pushes to main. It checks the frontend and Rust code, runs dependency audits with npm audit and cargo audit, and builds the desktop app on all three platforms.

Build & Release runs verification before building packages for macOS (Apple silicon and Intel), Windows (x64) and Linux (x86-64). A manual run uploads workflow artifacts. A version tag creates a draft GitHub release with notes from CHANGELOG.md.

To prepare a release, run npm run version:check. Then create and push the tag for the version in package.json.

git tag vX.Y.Z
git push origin vX.Y.Z

Review and publish the draft release on GitHub.

Troubleshooting

macOS: "app is damaged" or Gatekeeper warning Official release builds are signed and notarized. If macOS still quarantines a verified download, run:

xattr -cr /Applications/KimaiTray.app

Linux: AppImage won't launch

chmod +x KimaiTray_*.AppImage

Windows: WebView2 missing The packaged installer can download the WebView2 bootstrapper. For a local build, install the WebView2 Runtime.

Connection test says the server redirects to another address KimaiTray does not follow redirects to a different address, so your API token is never sent anywhere else. Use the address the message suggests, typically https:// instead of http://.

Connection fails with 401 Check the Kimai base URL and API token. If the token has expired, create a new one in your Kimai user profile and use Test & Save in KimaiTray.

Connection test reports a TLS, DNS or timeout error For a TLS error, check the server certificate and hostname. For a DNS error, check the URL and whether the hostname resolves from your desktop. For a timeout, check that you can reach the server from the same network.

Linux: OS credential store is unavailable Start or unlock your desktop's Secret Service implementation, then retry Test & Save. See the security policy for credential storage and vulnerability reporting.

Idle detection not working on Linux Idle detection uses xprintidle on X11 and the GNOME Mutter or KDE KIdleTime D-Bus API on Wayland. Install xprintidle when using X11:

sudo apt install xprintidle

Linux: Tray Icon

  • KimaiTray uses AppIndicator in Wayland sessions and on some X11 desktops, including GNOME.
  • GNOME may need an AppIndicator extension to display the tray icon.
  • Cinnamon, Xfce and MATE use legacy GTK tray icons under X11.

AppIndicator controls

  • When the tray host requests the tray menu, KimaiTray toggles the popup or detached window. The mouse button that sends this request depends on the tray host.
  • On tray hosts that support secondary activation, middle-click toggles the popup or detached window.

License

MIT

About

No description, website, or topics provided.

Resources

Contributing

Security policy

Stars

21 stars

Watchers

2 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages