Skip to content

Instantly share code, notes, and snippets.

@blakete
Last active April 24, 2025 15:39
Show Gist options
  • Save blakete/eda36e3b0cf33644c87b4c5dc2afb490 to your computer and use it in GitHub Desktop.
Save blakete/eda36e3b0cf33644c87b4c5dc2afb490 to your computer and use it in GitHub Desktop.

Set Ubuntu Nightlight Mode To Always On With Constant Temperature

  1. Set automatic schedule to false
dconf write /org/gnome/settings-daemon/plugins/color/night-light-schedule-automatic false
  1. Set start time to midnight (0.0)
dconf write /org/gnome/settings-daemon/plugins/color/night-light-schedule-from 0.0
  1. Set end time to 24.0 (next midnight)
dconf write /org/gnome/settings-daemon/plugins/color/night-light-schedule-to 24.0
  1. Set color temperature (range: 1000 for warm/red to 10000 for cool/blue)
dconf write /org/gnome/settings-daemon/plugins/color/night-light-temperature 4000
  • If you want to experiment with different color temperatures, you need to toggle Night Light off and on again to apply the new value:

    gsettings set org.gnome.settings-daemon.plugins.color night-light-enabled false
    gsettings set org.gnome.settings-daemon.plugins.color night-light-enabled true
  • Alternatively, if the gsettings based toggling of night light does not work, you can use the sct tool:

    sudo apt install sct
    sct 4000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment