Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
64 lines (42 sloc) 1.81 KB


This is for Kate 5 (KTextEditor from KF 5). If you need a version for Kate 4, use the v0.4 release.

How to use

  1. Get an account at WakaTime.

  2. Get your API key.

  3. Create a file ~/.wakatime.cfg and make sure it looks similar to this:

    api_key = myapikey-0000-0000-0000-000000000000
  4. Clone this project and compile:

    git clone
    cd kate-wakatime
    mkdir build
    cd build

    If on 64-bit:

    cmake .. -DCMAKE_INSTALL_PREFIX=/usr

    If on 32-bit:


    MacPorts (tested on Mid-2012 MacBook Pro running Yosemite):

    cmake .. -DCMAKE_INSTALL_PREFIX=/opt/local/ -DLIB_SUFFIX=""

    Finish the task:

  5. You can choose to install with sudo make install or you can set the KDEDIRS environment variable. You may need to run kbuildsycoca5 as yourself once before launching Kate again (this is true on MacPorts).

  6. Once this plugin is installed, open Kate (or any other katepart editor (KWrite, etc)) and go to Settings, Configure ..., then in the dialog choose Extensions.

  7. Use the checkbox to enable WakaTime and click OK:


  8. Restart Kate to be sure the plugin initialises properly.

Make sure you absolutely have your ~/.wakatime.cfg file properly set.

Is this a keylogger?

Short answer is no.

See the WakaTimeView::sendAction() method if you want to be certain.