Skip to content

Instantly share code, notes, and snippets.

@mlalkaka
Created March 10, 2019 07:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mlalkaka/03895f2d7811642f5c9dc3479362cb70 to your computer and use it in GitHub Desktop.
Save mlalkaka/03895f2d7811642f5c9dc3479362cb70 to your computer and use it in GitHub Desktop.
Script to toggle GNOME Night Light
#!/bin/sh
setting_path=org.gnome.settings-daemon.plugins.color
setting_key=night-light-enabled
current_value="$(gsettings get $setting_path $setting_key)"
if [ $current_value = "false" ]; then
gsettings set $setting_path $setting_key true
else
gsettings set $setting_path $setting_key false
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment