Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andrewpetrochenkov/mac-afk.py
:apple: :watch: get macOS afk time
https://github.com/andrewpetrochenkov/mac-afk.py
afk cli macos python
Last synced: about 2 months ago
JSON representation
:apple: :watch: get macOS afk time
- Host: GitHub
- URL: https://github.com/andrewpetrochenkov/mac-afk.py
- Owner: andrewpetrochenkov
- License: unlicense
- Created: 2018-09-30T20:17:28.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-12-03T21:04:34.000Z (about 4 years ago)
- Last Synced: 2024-11-11T06:41:30.247Z (about 2 months ago)
- Topics: afk, cli, macos, python
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![](https://img.shields.io/badge/OS-macOS-blue.svg?longCache=True)]()
[![](https://img.shields.io/pypi/v/mac-afk.svg?maxAge=3600)](https://pypi.org/project/mac-afk/)
[![](https://img.shields.io/npm/v/mac-afk.svg?maxAge=3600)](https://www.npmjs.com/package/mac-afk)[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)
[![](https://github.com/andrewp-as-is/mac-afk.py/workflows/tests42/badge.svg)](https://github.com/andrewp-as-is/mac-afk.py/actions)### Installation
```bash
$ [sudo] pip install mac-afk
``````bash
$ [sudo] npm i -g mac-afk
```#### Examples
```python
>>> import mac_afk
>>> import time
>>> time.sleep(2); mac_afk.seconds()
2
``````bash
$ sleep 3 && afk
3
```