Created
March 10, 2019 07:44
-
-
Save mlalkaka/03895f2d7811642f5c9dc3479362cb70 to your computer and use it in GitHub Desktop.
Script to toggle GNOME Night Light
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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