Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/tmiland/night_light.sh
- Owner: tmiland
- License: mit
- Created: 2023-12-25T18:07:00.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-09-23T13:11:16.000Z (10 days ago)
- Last Synced: 2024-09-25T19:09:03.535Z (8 days ago)
- Topics: dark-mode, dark-theme, debian, debian-desktop, gnome-desktop, light-dark-mode, light-mode, light-theme, linux-desktop, night-light
- Language: Shell
- Homepage:
- Size: 69.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 accountOutput 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
```
### InstallationDownload 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)