{"id":15394218,"url":"https://github.com/xyproto/sealion","last_synced_at":"2025-04-15T23:52:50.066Z","repository":{"id":136551353,"uuid":"105889539","full_name":"xyproto/sealion","owner":"xyproto","description":":ocean: Command line lunch reminder","archived":false,"fork":false,"pushed_at":"2024-10-10T01:00:24.000Z","size":276,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-29T03:02:17.440Z","etag":null,"topics":["bash","cli","command-line","developer-productivity","fish","lunch","notification","productivity","prompt","reminder","shell","utility","work-from-home","zsh"],"latest_commit_sha":null,"homepage":"","language":"Python","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/xyproto.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":"2017-10-05T12:52:14.000Z","updated_at":"2024-10-10T01:00:28.000Z","dependencies_parsed_at":"2024-10-19T02:05:58.753Z","dependency_job_id":null,"html_url":"https://github.com/xyproto/sealion","commit_stats":{"total_commits":88,"total_committers":2,"mean_commits":44.0,"dds":"0.26136363636363635","last_synced_commit":"f1a2b6d9ccd346ffe779ed561dc99c67dca0c880"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyproto%2Fsealion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyproto%2Fsealion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyproto%2Fsealion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyproto%2Fsealion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xyproto","download_url":"https://codeload.github.com/xyproto/sealion/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249173061,"owners_count":21224481,"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":["bash","cli","command-line","developer-productivity","fish","lunch","notification","productivity","prompt","reminder","shell","utility","work-from-home","zsh"],"created_at":"2024-10-01T15:22:28.772Z","updated_at":"2025-04-15T23:52:50.049Z","avatar_url":"https://github.com/xyproto.png","language":"Python","funding_links":[],"categories":["Plugins"],"sub_categories":["ZSH on Windows"],"readme":"# Sea Lion Lunch Reminder\n\n\u003cimg src=\"img/sealion.jpg\" width=\"330\" align=\"right\"\u003e\n\nBe reminded to have lunch, directly in your prompt.\n\nMessages are displayed in configurable time-intervals.\n\n### Example configuration\n\n`~/.config/sealion.conf`\n\n```c\n11:00 - 11:20 : lunch 11:20, in %m minutes\n```\n\nThis will add a prompt reminder from 11:00 to 11:20 with the message \"lunch 11:20, in N minutes\", where N is the number of minutes left.\n\n### Quick installation\n\nSystem installation:\n\n    git clone https://github.com/xyproto/sealion\n    cd sealion\n    sudo make install\n    \n User setup:   \n    \n    sealion-setup\n\n## Configuration\n\n\u003cimg src=\"https://i0.wp.com/francesbell.com/wp-content/uploads/2015/02/sealion-cartoon.png\" width=\"512\" align=\"right\"\u003e\n\n* `sealion.conf` needs to follow the existing format (using `:` and `-` in the appropriate places).\n* Comments in `sealion.conf` are allowed, as long as they are single-line comments starting with `#`.\n* If a description in `sealion.conf` contains `%m`, it will be replaced with the number of minutes left when outputting the message.\n\nType `on` or `off` to enable or disable Sea Lion for the current shell session.\n\n\n### User setup on a system where Sea Lion has already been installed\n\n    sealion-setup\n\n## Requirements\n\n* Python 3\n* `bash`, `fish` or `zsh`.\n\n## Alternative use: Run watch in a separate terminal emulator\n\nSimple case:\n\n```sh\nwatch sealion\n```\n\nFor updating every 5 seconds, with no title and highlighting any differences:\n\n```sh\nwatch --color --differences --no-title --interval 5 sealion\n```\n\n## Manual Setup\n\nThe following is not normally needed, since `sealion-setup` handles this per user, but it helps to explain what is being set up by `sealion-setup`:\n\n### Manual Bash setup\n\n* Add the following to your `~/.bashrc`:\n\n```bash\n# Sea Lion Prompt Reminder\non() {\n  export PROMPT_COMMAND=\"/usr/bin/sealion\"\n  off() { unset PROMPT_COMMAND; }\n}\n\n# Enable prompt messages if on the right host and not over ssh\n[ $HOSTNAME = \"work_pc\" ] \u0026\u0026 [ ! -n \"$SSH_TTY\" ] \u0026\u0026 on || true\n```\n\n* NOTE: Change `work_pc` to whatever the hostname of your work PC is.\n\n### Manual Fish setup\n\n* Add the following to your `~/.config/fish/config.fish`:\n\n```fish\n# Sea Lion Prompt Reminder\nfunction on\n  function sealion --on-event fish_prompt\n    /usr/bin/sealion\n  end\n  function off\n    functions -e sealion\n  end\nend\n\n# Enable prompt messages if on the right host and not over ssh\nif [ (hostname) = \"work_pc\" ]; and not count $SSH_TTY \u003e /dev/null; on; end\n```\n\n* NOTE: Change `work_pc` to whatever the hostname of your work PC is.\n\n### Manual Zsh setup\n\n* Add the following to your `~/.zshrc`:\n\n```zsh\n# Sea Lion Prompt Reminder\non() {\n  precmd() { /usr/bin/sealion }\n  off() { unset -f precmd }\n}\n\n# Enable prompt messages if on the right host and not over ssh\n[ \"$HOST\" = \"work_pc\" ] \u0026\u0026 [ ! -n \"$SSH_TTY\" ] \u0026\u0026 on || true\n```\n\n* NOTE: Change `work_pc` to whatever the hostname of your work PC is.\n\n## General Info\n\n* Version: 2.0.1\n* License: MIT\n* Author: Alexander F. Rødseth \u0026lt;xyproto@archlinux.org\u0026gt;\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxyproto%2Fsealion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxyproto%2Fsealion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxyproto%2Fsealion/lists"}