Code Monkey home page Code Monkey logo

mmtime's Introduction

Monitor My Time (mmtime)

This CLI tool aims at offering a deamon-like process that works in the background and monitors the time that the user had spent on a collection of applications.

This collection of applications can be defined in the ~/.config/mmtime-vX.X/targets file, where every application, that the user wants to track the amount of time he/she spend in, is listed in a sperated time. i.e

    # My target apps.

    Discord 
    Code 
    Slack 
    Mpv 
    Firefox 
    Vim 

The mmtime tool will then track all the time spent on these applications and write that to a db file (~/.local/share/mmtime-vX.X/targets.stats.db).

Besides, there will be a system tray applet that will allow the user to see the current monitoring related stats, this will give the user the ability to see the stats live and also through a menu item reload the configuration file (targets file).

Setup & Installation ( Using Go tools )

    # make sure to install xterm & yad (for some use these commands)
    [[ "$HOSTNAME" == "debian" ]] && sudo apt install xterm yad
    [[ "$HOSTNAME" == "ubuntu" ]] && sudo apt install xterm yad
    [[ "$HOSTNAME" == "fedora" ]] && sudo dnf install xterm yad


    # build the binary (this requires Go to be installed )
    make build

    # setup the environment and mv the binary to ~/.local/share
    make install

    # (Optional) you can create a symlink to the binary
    # to /usr/local/bin, or directly copy the binary to it.

Setup & Installation ( Without Go tools )

First, download from Github the latest release.

    # clone the repo
    git clone <repo_url>

    # download from github the latest release

    # move the binary of the release to the project /bin directory

    # run make install 
    make install

Uninstall

    # just run the following command to remove all the used
    # directroies and the ~/.local/share binary.
    make uninstall

    # (NOTE) extra setup from your part should be undone by
    # yourself.

mmtime's People

Contributors

massigy avatar

Stargazers

 avatar

Watchers

 avatar

mmtime's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.