{"id":21273534,"url":"https://github.com/unkwusr/dalarma","last_synced_at":"2026-02-13T07:33:44.172Z","repository":{"id":128757603,"uuid":"440893912","full_name":"UnkwUsr/dalarma","owner":"UnkwUsr","description":"cli timer that forces you to get up from the computer","archived":false,"fork":false,"pushed_at":"2024-07-21T13:16:57.000Z","size":29,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-23T13:39:53.957Z","etag":null,"topics":["break","cli","force","remind","reminder","timer"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/UnkwUsr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-22T14:59:11.000Z","updated_at":"2024-07-21T13:17:00.000Z","dependencies_parsed_at":"2024-03-04T20:40:33.623Z","dependency_job_id":"fea5bae3-9f8c-4db3-85cd-5bd3377e5291","html_url":"https://github.com/UnkwUsr/dalarma","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/UnkwUsr/dalarma","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UnkwUsr%2Fdalarma","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UnkwUsr%2Fdalarma/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UnkwUsr%2Fdalarma/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UnkwUsr%2Fdalarma/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UnkwUsr","download_url":"https://codeload.github.com/UnkwUsr/dalarma/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UnkwUsr%2Fdalarma/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29398563,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T06:24:03.484Z","status":"ssl_error","status_checked_at":"2026-02-13T06:23:12.830Z","response_time":78,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["break","cli","force","remind","reminder","timer"],"created_at":"2024-11-21T09:15:21.476Z","updated_at":"2026-02-13T07:33:44.156Z","avatar_url":"https://github.com/UnkwUsr.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dalarma\n\n`dalarma` is a simple, but powerful cli tool for setting timers, which, after\ntimeout, will block your screen (by default for 15 seconds) to force you to get\nup from the computer and do some thing.\n\n### Why would I want to block my screen and force me for anything?\n\nImagine you cooking something in oven, and you need to wait for 1 hour until it\nis done. If you seat at computer, you can very easily miss the time and then\nyour food is crapped. With `dalarma` you can set timer for 1 hour, which after\nexpiring will block your screen (for 15 seconds), so you have to get up and\ncheck oven.\n\n### Why no way for easy skip/postpone?\n\nWhen you do really interesting task and have some experience with such timers,\nyou actually getting training yourself to automatically/mindlessly\npostpone/skip another one timer alarm, thinking like \"ahgh, I'm almost finished\nthis fancy algorithm, let me just done it in 2 minutes and I'll check these\noven\", which can result in many postpones in a row, so you know what will\nhappen with your food...\n\n## Requirements\n\n* `wmctrl` (partially optional) - used to make window fullscreen and auto-focus\n  each second to make window harder to close. Hence, it is core functionality,\n  but still, `dalarma` can work without it.\n* `st` - simple/suckless terminal emulator, used as gui window that blocks\n  screen.\n* `notify-send` (optional) - for sending notifies visible on blocked screen.\n\n## Installation\n\n### On Arch Linux\n\nAUR package: [dalarma-git](https://aur.archlinux.org/packages/dalarma-git/)\n\n### Manual\n\nCopy [./dalarma](./dalarma) somewhere to your `$PATH` (like `~/.local/bin/` or\n`/usr/bin/`) and optionally [./config.example.sh](./config.example.sh) to\n`~/.config/dalarma/config.sh`.\n\n## Usage\n\nFirst argument is always the time after which \"you need to do something\".\nFormat is the same as for `sleep`, so go to `man sleep` for details. In short:\nthere is available suffixes like `s`, `m`, `h` for seconds, minutes and hours\nrespectively.\n\nAdditionally, first argument time can be set in format `hh:mm` to set timer ON\nTIME, not by offset.\n\nAll remaining arguments will be used as title for your timer (can be ommited).\n\n```\ndalarma 30m check oven\n```\n\n```\ndalarma 14:20 time to depart\n```\n\n### Managing timers\n\n`dalarma` puts each new timer metadata to `/tmp/dalarma/` folder, one per file.\nFile name is pid of timer process, and file itself contains metadata about this\ntimer, such as `started_at`, `sleep_time` and `title`.\n\nThere is [script](./helper_scripts/fdalarma) that also utilizes fzf for ui. You\ncan take inspiration from it.\n\n## Configuration\n\n`~/.config/dalarma/config.sh` is just a shell script, so it can be very\nhackable and extensible.\n\nAs interesting feature, you can execute your own commands before and after lock\n(like mute/unmute all sounds, etc.) with `cmd_pre_lock` and `cmd_post_lock`.\n\nYou can edit it even after some timers have started and they will use updated\nconfig (for example, edit pre and post hooks).\n\nSelf-explanatory [config example](./config.example.sh) provided.\n\n## Inspiration\n\nSpiritual successor of \u003chttps://github.com/UnkwUsr/UsefulB\u003e , which was first\ninspired by \u003chttps://github.com/slgobinath/SafeEyes\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funkwusr%2Fdalarma","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funkwusr%2Fdalarma","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funkwusr%2Fdalarma/lists"}