Giter Site home page Giter Site logo

paulcoral / night-light-switch-script-gnome Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 1.0 30 KB

A simple bash shell script to switch( on/off ) the nightlight gnome option

Home Page: https://paulcoral.github.io/Night-Light-Switch-Script-Gnome/

License: GNU General Public License v3.0

Shell 100.00%
gnome linux shell gnome-settings shortcuts nightlight-mode shell-script bash bash-script

night-light-switch-script-gnome's Introduction

⚠️ WARNING ⚠️
I am not using the GNOME desktop environment any more so this script won't recieve frequent updates

Night-Light-Switch-Script-Gnome

A simple bash shell script to switch( on/off ) the nightlight gnome option

You can easily use the nightlight mode with gnome desktops.

Easy installation

You can also follow this video tutorial.

  • Download the latest release (or clone the repository)
  • Extract the archive and go into the extracted folder
  • Add the execution privileges to the installer.sh file :
chmod u+x installer.sh
  • Run ./installer.sh and follow the instruction
  • Now you can switch the NightLight mode with Ctrl+Shift+L or your custom shortcut.

Hard Installation method (In case of issues)

It is very pleasant to use with shortcuts:

  • You just need to go type shortcut in gnome search bar and add a shortcut.
  • In the field command paste the path to the shell script.
  • (Easy)Go to Display Settings, at the bottom you should see "Night Light". Set the hour from 00:00 to 23:59. (Advanced)You can also download the dconf editor and go to org/gnome/settings-daemon/plugins/color/. Then set night-light-schedule-from=0 and night-light-schedule-to=24.

📝 Modify the shortcut in Gnome settings under the keyboard tab ❗

Remove

  • remove the .CoPaScripts in your home directory
  • remove the shortcut in the gnome settings under the keyboard tab
  • (an uninstaller.sh will be provided in the future)

License

This project is licensed under the GPL-3 license.

Created by Paul Coral

night-light-switch-script-gnome's People

Contributors

patrickcoral avatar paulcoral avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

ola-dpol

night-light-switch-script-gnome's Issues

Suggestion: Activate night light when Disable Until tomorrow is active

Hi,
I just solved an annoying issue with my nightlight switch script that was bugging me, more exactly the disable until tomorrow feature that does not allow nightlight activation, so I thought I'd share it here:

BUS_NAME="org.gnome.SettingsDaemon.Color"
OBJECT_PATH="/org/gnome/SettingsDaemon/Color"

stop_disable_until_tomorrow() {
   dbus-send --session --dest=$BUS_NAME --print-reply $OBJECT_PATH  org.freedesktop.DBus.Properties.Set string:$BUS_NAME string:DisabledUntilTomorrow variant:boolean:false >> /dev/null 2>&1
}

You can add these to your script, if you would like, it's quite a small piece of code, I won't fork it to make a pull request.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.