Metadata-Version: 2.4
Name: gnome-night-shift
Version: 0.6.2
Summary: Switch GNOME between light and dark at sunrise and sunset: systemd timers (`gnome-night-shift`) for the Night Shift GNOME extension
Author-email: Christopher McAdams <mca.christopher@gmail.com>
License-Expression: MIT
Project-URL: Homepage, https://github.com/christophermca/gnome-night-shift
Project-URL: nocturne-shift, https://github.com/christophermca/nocturne-shift
Project-URL: GNOME extension, https://github.com/christophermca/gnome-shell-extension-night-shift
Keywords: gnome,night shift,dark mode,sunrise,sunset,theme,systemd
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: POSIX :: Linux
Classifier: Environment :: X11 Applications :: Gnome
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: nocturne-shift>=0.7.2
Requires-Dist: PyGObject>=3.48.0
Provides-Extra: test
Requires-Dist: pytest; extra == "test"
Requires-Dist: pytest-cov; extra == "test"
Provides-Extra: dev
Requires-Dist: black; extra == "dev"
Dynamic: license-file

# gnome-night-shift

Switch GNOME between light and dark at sunrise and sunset:
systemd timers (`gnome-night-shift`) for the Night Shift extension

---

The helper for the [Night Shift GNOME extension](https://github.com/christophermca/gnome-shell-extension-night-shift):
it switches GNOME between light and dark at sunrise and sunset.

It installs [`nocturne-shift`](https://pypi.org/project/nocturne-shift/) and the
systemd timers that run it, managed with the `gnome-night-shift` command:

```sh
gnome-night-shift setup [SCHEMA_PATH]   # write, link and start the timers
gnome-night-shift stop
gnome-night-shift start
gnome-night-shift teardown              # stop and remove the timers
```

The same actions are also available as `nocturne-shift services ...` when
`nocturne-shift` is on your PATH.

## Install

```sh
pipx install --system-site-packages gnome-night-shift
```

`--system-site-packages` uses your distro's PyGObject instead of building it.
Requires Linux with systemd. If pipx tries to build PyGObject anyway (its uv
backend ignores system packages), add `--backend pip`.

[![Publish to PyPI](https://github.com/christophermca/gnome-night-shift/actions/workflows/publish-pypi.yml/badge.svg)](https://github.com/christophermca/gnome-night-shift/actions/workflows/publish-pypi.yml)
