Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tmiland/night_light.sh

Automatic night light script for gnome
https://github.com/tmiland/night_light.sh

dark-mode dark-theme debian debian-desktop gnome-desktop light-dark-mode light-mode light-theme linux-desktop night-light

Last synced: 5 days ago
JSON representation

Automatic night light script for gnome

Awesome Lists containing this project

README

        

# night_light.sh
Automatic night light script for gnome

## Script to adjust night light in gnome

- Automatically adjusts night light based on local time. (default 24 hour clock)
- Toggles dark/light mode based on time of day (light in the morning and dark in the night)
- Using [dark-toggle](https://github.com/rifazn/dark-toggle)
- Takes local cloud cover and UV radiation into account

Output looks like this
```bash
yr.no is Online.
Sunrise: 06:26 Sunset: 20:21
Cloud cover past 5 minutes: 100%
UV Index past 5 minutes: (1) Low
UV Index is added to Cloud cover
On a inverted scale from 100-0
Calculation: 5750-(100+95)=5555
Current temperature: 5555
```
### Installation

Download and install

```bash
wget -qO- https://github.com/tmiland/night_light.sh/raw/main/night_light.sh | bash -s -- -i
```

### Config options

![settings](https://raw.githubusercontent.com/tmiland/night_light.sh/main/assets/settings.png)

```bash
Usage: [options]

If called without arguments, uses 24 hour clock.

--24hour | -24 use 24 hour clock
--12hour | -12 use 12 hour clock
--light-enabled | -le turn on/off (true/false)
--light-temperature | -lt show light-temperature
--dark-toggle | -dt toggle dark/light color scheme
--auto-run | -ar auto run
--config | -c run config dialog
--install | -i install
--uninstall | -u uninstall

```

### Compatibility and Requirements

- Debian
- Gnome desktop
- screen
- lynx
- wget
- curl

### Credits

- [Based on source](https://discussion.fedoraproject.org/t/can-i-manipulate-night-mode-from-command-line/72853/2)
- [dark-toggle](https://github.com/rifazn/dark-toggle)

### Disclaimer

*** ***Use at own risk*** ***

### License

[![MIT License Image](https://upload.wikimedia.org/wikipedia/commons/thumb/0/0c/MIT_logo.svg/220px-MIT_logo.svg.png)](https://github.com/tmiland/night_light.sh/blob/master/LICENSE)

[MIT License](https://github.com/tmiland/night_light.sh/blob/master/LICENSE)