Watch
1
0
Fork
You've already forked dotfiles
0

tmp night light

This commit is contained in:
Alexander Hess 2026-08-14 20:45:34 +02:00
commit 809bbe08d8
Signed by: alexander
GPG key ID: B46EDB4DFC26805D
10 changed files with 191 additions and 82 deletions

25
.local/bin/night-light-reset Executable file
View file

@ -0,0 +1,25 @@
#!/bin/sh
# Ensure "Night Light" is enabled,
# set to run according to the automatic schedule,
# and reverted to the `_DEFAULT_TEMPERATURE`
#
# Intended to be run at 03:00 by the `night-light-reset.timer` systemd
# user unit, so that a forced state does not persist
#
# See ~/.local/bin/night-light-toggle-schedule for detailed documentation
set -eu
_DEFAULT_TEMPERATURE=2200
Schema=org.gnome.settings-daemon.plugins.color
gsettings set $Schema night-light-enabled true
gsettings set $Schema night-light-schedule-automatic true
gsettings set $Schema night-light-schedule-from 18.0
gsettings set $Schema night-light-schedule-to 6.0
gsettings set $Schema night-light-temperature "uint32 $_DEFAULT_TEMPERATURE"