{"id":16688012,"url":"https://github.com/danielpclark/clock_window","last_synced_at":"2026-03-16T21:03:04.183Z","repository":{"id":59152133,"uuid":"58228953","full_name":"danielpclark/clock_window","owner":"danielpclark","description":"Clock your own desktop activity!  Open for feature requests and contributors!","archived":false,"fork":false,"pushed_at":"2016-05-14T03:14:00.000Z","size":39,"stargazers_count":6,"open_issues_count":1,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-24T13:17:24.988Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danielpclark.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-06T19:03:05.000Z","updated_at":"2017-01-05T04:33:27.000Z","dependencies_parsed_at":"2022-09-13T11:01:08.522Z","dependency_job_id":null,"html_url":"https://github.com/danielpclark/clock_window","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielpclark%2Fclock_window","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielpclark%2Fclock_window/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielpclark%2Fclock_window/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielpclark%2Fclock_window/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielpclark","download_url":"https://codeload.github.com/danielpclark/clock_window/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248135706,"owners_count":21053745,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T15:26:27.433Z","updated_at":"2026-03-16T21:03:04.103Z","avatar_url":"https://github.com/danielpclark.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/danielpclark/clock_window.svg?branch=master)](https://travis-ci.org/danielpclark/clock_window)\n[![Gem Version](https://badge.fury.io/rb/clock_window.svg)](https://badge.fury.io/rb/clock_window)\n[![Code Triagers Badge](http://www.codetriage.com/danielpclark/clock_window/badges/users.svg)](http://www.codetriage.com/danielpclark/clock_window)\n\n# Clock Window\n[![OS Support](https://github.com/danielpclark/clock_window/blob/master/assets/mac-lin.png)]()\n\n**Mac** \u0026 **Linux** compatible.\n\nA minimalist script to keep track of how long each window is active.\nMeasured in quarter minutes.  Hash builds until you kill the script with CTRL-C\nat which point it writes out the log file.  This script \u003cdel\u003eadds no extra CPU load\u003c/del\u003e\nwill not raise the CPUs temperature indicating minimal CPU usage.\n\nThe output will look quite nice in any text editor aligned by the colon separator.\n\nOutput looks like:\n```\n{\n  \"*---------- WINDOW NAME ----------*\"                           : \"minutes\",\n  \"Pandora Internet Radio - Listen to Free Music You'll Love - C\" : 0.5,\n  \"MetaRuby - Ruby Forum - Chromium\"                              : 0.25,\n  \"New Tab - Chromium\"                                            : 0.5,\n  \"Ruby Weekly Issue 296: May 5, 2016 - Chromium\"                 : 0.5 \n}\n```\n\n# Installation\n\n```\ngem install clock_window\n```\n\n# Usage\n\nThe `clock_window` script now accepts command line parameters.\n\n```\nusage: clock_window [options]\n\n    -c, --clean   Use all known name filters\n    -o, --output  File/directory output in strftime\n    -e, --eager   Use strftime of time at start of script\n\n    --version     Print the version\n    -h, --help    This help menu\n```\n\nAnd to save the file in a `year-month/day_of_year.json` format you can execute the script with.\n\n```\nclock_window -ceo \"%Y-%m/%j.json\"\n```\n\nFor more customizable date formats see the [documentation for strftime](http://apidock.com/ruby/DateTime/strftime).\nDefault file output name is `timelog.json`.\n\n# Contributing\n\nFeel free to contribute!  We're looking for additional OS support by people who use different operating systems.\n\n## The MIT License (MIT)\nCopyright (c) 2016 Daniel P. Clark\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielpclark%2Fclock_window","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielpclark%2Fclock_window","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielpclark%2Fclock_window/lists"}