Giter Club home page Giter Club logo

gnome-shell-night-light-slider-extension's Introduction

migration notice

This repository has moved to Codeberg.

gnome-night-light-slider-extension

Manage GNOME's built-in night light temperature intensity from the aggregate menu!

extension previewextension in submenuextension with brightness sync

  • Click or scroll the slider to change the Night Light temperature
  • Scroll on the indicator to change the Night Light temperature
  • The preference panel even supports a quick toggle to enable Night Light if it's disabled!

preferences

extension preferences

The extension can be customized with the following preferences:

  • Change the slider position in the aggregate menu, either at the top-level or in the Night Light submenu
  • Always have the slider shown, even when the Night Light is disabled
  • Toggle the indicator visibility
  • Swap the axis of the slider
  • Sync Night Light slider percentage with brightness (albeit not vice-versa, works well on laptops with well tuned temperature ranges)
  • Enable permanent Night Light via having a timer constantly shift and update the Night Light schedule
  • Adjust minimum and maximum temperature values

installation

Available from GNOME extensions website here, make sure to enable Night Light under Settings/Display

contributors

gnome-shell-night-light-slider-extension's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

gnome-shell-night-light-slider-extension's Issues

Add setting for brightness day/night for desktop PC

This extension is a very nice replacement for Redshift which I used to use. Only I miss a setting for the brightness at day and at night. Redshift simulates the brightness adjustment. The adjustment is gradually just like the color temperature.

Daytime/nighttime temperatures

Checklist:

  • I realise this extension extends on the existing GNOME night light feature and can only control the temperature.
  • I have gone through the extension settings to check that this feature is unavailable.

Feature Description:
It would be helpful to have the "permanent night light" option, but with variable temperature based on time of day. For example, I currently use Redshift to set my display to 5300k during the day, and 3500k during the evening, which is great for reducing daytime eyestrain.

[Request] Add script hook support

I'm a previous user of redshift, and although I love this, m
I'm really missing one feature from it, script hooks.

https://www.systutorials.com/docs/linux/man/1-redshift/#lbAH

This allowed me to write scripts that would trigger whenever it went from day to night mode, which allowed for some really cool customization options (such as switching the wallpaper, or changing the gtk theme)

Is there any chance that this is a feature you'd think about adding?

bug(extension): gnome 3.36 deprecated api warnings

Describe the bug
Extension uses deprecated API, throws a lot of errors in GNOME 3.26

Mar 12 01:38:20 tiamat gnome-shell[2972]: Usage of object.actor is deprecated for Slider
                                          get@resource:///org/gnome/shell/ui/environment.js:285:29
                                          _init@/home/dafne/.local/share/gnome-shell/extensions/[email protected]/extension.js:52:5
                                          enable@/home/dafne/.local/share/gnome-shell/extensions/[email protected]/extension.js:164:23
                                          _callExtensionEnable@resource:///org/gnome/shell/ui/extensionSystem.js:160:32
                                          loadExtension@resource:///org/gnome/shell/ui/extensionSystem.js:311:26
                                          _loadExtensions/<@resource:///org/gnome/shell/ui/extensionSystem.js:536:18
                                          collectFromDatadirs@resource:///org/gnome/shell/misc/fileUtils.js:27:17
                                          _loadExtensions@resource:///org/gnome/shell/ui/extensionSystem.js:515:19
                                          _enableAllExtensions@resource:///org/gnome/shell/ui/extensionSystem.js:545:18
                                          _sessionUpdated@resource:///org/gnome/shell/ui/extensionSystem.js:576:18
                                          init@resource:///org/gnome/shell/ui/extensionSystem.js:54:14
                                          _initializeUI@resource:///org/gnome/shell/ui/main.js:244:22
                                          start@resource:///org/gnome/shell/ui/main.js:138:5
                                          @<main>:1:47
Mar 12 01:38:20 tiamat gnome-shell[2972]: Some code tried to set a deprecated GObject property.
                                          0 _patchContainerClass/containerClass.prototype.child_set() ["resource:///org/gnome/shell/ui/environment.js":32:12]
                                          1 _patchContainerClass/containerClass.prototype.add() ["resource:///org/gnome/shell/ui/environment.js":41:17]
                                          2 _init() ["/home/dafne/.local/share/gnome-shell/extensions/[email protected]/extension.js":52:21]
                                          3 enable() ["/home/dafne/.local/share/gnome-shell/extensions/[email protected]/extension.js":164:22]
                                          4 _callExtensionEnable() ["resource:///org/gnome/shell/ui/extensionSystem.js":160:31]
                                          5 loadExtension() ["resource:///org/gnome/shell/ui/extensionSystem.js":311:25]
                                          6 _loadExtensions/<() ["resource:///org/gnome/shell/ui/extensionSystem.js":536:17]
                                          7 collectFromDatadirs() ["resource:///org/gnome/shell/misc/fileUtils.js":27:16]
                                          8 _loadExtensions() ["resource:///org/gnome/shell/ui/extensionSystem.js":515:18]
                                          9 _enableAllExtensions() ["resource:///org/gnome/shell/ui/extensionSystem.js":545:17]
                                          10 _sessionUpdated() ["resource:///org/gnome/shell/ui/extensionSystem.js":576:17]
                                          11 init() ["resource:///org/gnome/shell/ui/extensionSystem.js":54:13]
                                          12 _initializeUI() ["resource:///org/gnome/shell/ui/main.js":244:21]
                                          13 start() ["resource:///org/gnome/shell/ui/main.js":138:4]
                                          14 <TOP LEVEL> ["<main>":1:46]

Screenshots
The extension shows the following on the website:
Screenshot from 2020-03-12 03-11-46

System Information:

  • OS: Arch Linux
  • GNOME Version: GNOME 3.36

Include a reset feature

I use this to adjust the temperature slightly while working with color sensitive stuff. It's great help. However it would be great to allow reset to gnome level either through the extension settings or by clicking the icon next to the slider. Currently the icon sets it to the lowest level. Even better would be an option to let it toggle between custom and system defaults.

add option to enable night light if deactivated

Thanks for your efforts. I do have a feature request: Everytime I deactivate night light I'll have to go to the settings menu to re-enable it. I know that there is toggle for disabling it just until tomorrow but sometimes I like to disable it for some days and then enable it again. It would be neat if there was a toggle in the night light submenu to enable it if deactivated or if the submenu will not be hidden if deactivated.

unable to install extension by firefox plugin neither by gnome software manager

Hello,

I am using Gnome 3.22.2 and Debian GNU/Linux 9 (stretch) 64-bit.
When I try to install the extension in firefox by switching ON/OFF it just returns to OFF after ON is pressed. In software manager, after clicking to download and install, the install button does not disappear and the launch does not show up.
After checking

sudo journalctl /usr/bin/gnome-shell -f

during the installation, It echoes:

  • inflating this and that blabla
  • extracting this and that blabla
  • JS WARNING: [/home/rgnagel/.local/share/gnome-shell/extensions/[email protected]/extension.js 114]: in strict mode code, functions may be declared only at top level or immediately within another function

I tried to change the function location but it brought other errors then I gave up.
Also, I did not notice any other warning/error in logs.

I will appreciate your support on that,
thanks.

dual monitors

Ubuntu 18.04 / nvidia 390
It works but its only working on my second monitor and not my primary...not sure if anyone else has seen this.

request: turn night light off for a few minutes

Checklist:

  • I realise this extension extends on the existing GNOME night light feature and can only control the temperature.
  • I have gone through the extension settings to check that this feature is available.

Feature Description:

Was just browsing a bit and I came across this issue where someone may want to have the night light turned off just for a few minutes, and possible re-enable it thereafter.

Does nothing on Fedora

Hi!

Is there an unstated dependency in the extension? On fedora workstation 26 (64bit) it shows the intensity slider but the screen colour/luminosity is unaffected.

Looking at the screenshot in the README.md file I noticed that I don't have the line in the menu that says "Night Light On". Here is midnight though. 🌃

I like the idea of the extension though! :)

/mac

Option to "lock" brightness slider with night light slider

Dear @TimurKiyivinski,

I tend to align the night light slider with the brightness one.

Keeping both at the same level provides a very good combination, I found!

Looking forward to hearing what you think from your experiences.

Hence, I would welcome an option in the settings to lock brightness and night light slider.

Locking would make both move simultaneously when moving the night light slider.

What do you think?

RFC: Apply settings only to application windows?

Hi, I'm posting my first ever, and prob'ly half-baked, "RFC". I thought of this last night, where I have a nice color behind my minimal conky setup, that I'd like to keep the background color. I don't know how much trouble that would be, so I'd rather ask about it.

The browser and email clients, for instance, seems to benefit the most, having so much white background. But I like my Terminal apps as they are.

Basically I just want to say hi. Your extension is the first that made me dig deeger. I've got one setup, the barebones 'hello world', thinking about making my conky app an extension...
**night light slider full brightness (looks bloody else) **
conky2

thank you.

GNOME 3.34 version unpublished

The following bug reports have been filed wrt. the extension not working with GNOME 3.34:

This issue is a tracker for when I manage to publish it to the GNOME shell extensions website.

Night Light being automatically re-enabled

  • Latest version from the extensions page
  • Disabled Night light manually from the top panel
  • After a while, Night Light is being enabled again
  1. Caused by this extension?
  2. Can anyone else confirm this?

No slider within the aggregate menu.

Hi,
it does not work for me, there's no that slider within the aggregate menu.

Screenshots

Night Slider Settings:

201028-164742 NightLightSlider settings

System Information:

  • OS: Ubuntu 18.04.5 LTS
  • GNOME Version: gnome-software 3.28.1

moving the slider should enable night light

when i disable night light using the ‘disable’ menu item in the system menu dropdown (top right), the slider from this extension is still visible. this is a good thing. however, it does not do anything anymore. this is a bad thing.

my proposed solution is simple: changing the slider should re-enable night light.

Option to hide night light icon?

Hey @TimurKiyivinski,

For a cleaner UI, would it be possible to add an option for these settings to hide th night light icon in the top panel?

I actually don't need to see that if enabled always is active.

Thanks! :-)

image

parallel sliders

hi, since a few days maybe weeks, i keep seing this all the time with your extension (remains the same across shell themes).. when i move one and release it, other two slide into the same position. i'm on Fedora 27.
2017-10-31_20-48-09_931

fully functioning slider outputs error

Describe the bug

The slider is fully functional. But the extension...

  1. ...shows ERROR on https://extensions.gnome.org/extension/1276/night-light-slider/
  2. ...can't be switched to on via Extension (this new extension UI in 20.04)

The settings can be changed via Extensions.

$ sudo journalctl -fe
gnome-shell[6882]:
JS ERROR: Extension [email protected]: TypeError: setting getter-only property "indicators"enable@/home/me/.local/share/gnome-shell/extensions/[email protected]/extension.js:196:31
_callExtensionEnable@resource:///org/gnome/shell/ui/extensionSystem.js:166:32
loadExtension@resource:///org/gnome/shell/ui/extensionSystem.js:336:26
callback@resource:///org/gnome/shell/ui/extensionDownloader.js:232:39
gotExtensionZipFile/<@resource:///org/gnome/shell/ui/extensionDownloader.js:115:13

System Information:

  • OS: 20.04 Ubuntu
  • GNOME Version: 3.36.2
  • Slider: 14

Hide slider when inactive

Nice extension! I happened to suggest this to someone on reddit, and they noted that it would be more sensible if the temperature slider were hidden while the Night Light is not activated.

bug: stop working since few days ago. Light bar don't do anything.

Describe the bug
Since the other day stop working on my PC.
Doesn't matter if is ON. Don't works. I move left and right the bar, and nothing change.

I change min and max values, move again the bar. Nothing change.

I uninstalled, restarted gnome, logout and login, installed again. Nothing.

I have same OS at work, with same extensions and is working fine and fast.

Screenshots

System Information:

  • OS: Ubuntu 19.04
  • GNOME Version: 3.32.2

"Enable always" mode is more like "enable always, except 11pm to midnight"

AFAICT, toggling the "enable always" box just sets the night light mode start/end to 00:00 and 24:00, respectively.

For some reason, what this actually seems to do is to make the screen turn gradually blue starting at ~11pm, until it's in full daylight mode at 11:59pm, and then it abruptly flips back to red-mode at 12:00am.

I'd love to have an actual "enable always" mode, but I haven't figured out how to do that. So far my workaround is to set it to manual, and enable it from 04:01 until 03:00, which at least moves the blue period outside of my normal waking hours. (For some reason you seem to need a 61 minute gap between the two settings for things to work properly? I don't understand this feature.)

Slider sets itself off

The slider moves to the left by itself since v. 17.0. The dimming of the screen light is not affected by this.

slider1

image

  • OS:Ubuntu 20.04
  • GNOME Version: 3.36.3

Not working with 3.38

Really usefull in 3.36, since I upgraded to 3.38(.1) in both Arch Linux and Debian Testing, it's sadly not working anymore.

System Information:

  • OS: Arch Linux and Debian Testing
  • GNOME Version: 3.38(.0,.1)

Move slider to "Night Light On" submenu

Would it be possible to move the slider to the "Night Light On" submenu, so that the slider was only visible when this menu is expanded? Changing the colour temperature is something I can't imagine doing very often, so I really don't need to have the slider displayed all the time.

bug(extension): GNOME 3.34 support

Describe the bug
Extension does not work with GNOME Shell 3.34.

System Information:

  • OS: Arch Linux 5.3.4-arch1-1-ARCH
  • GNOME Version: 3.34.0

Show value on change

Please add some way to show the current temperature upon change, and make it change in steps of 100K.

Isn't working in Pop OS 19.10

Just installed and restarted gnome shell, I see the slider but it doesn't actually do anything...

System Information:

  • OS: Pop OS 19.10
  • GNOME Version: 3.34.2

SyntaxError: illegal character

SyntaxError: illegal character

Stack trace:
  Application<._getExtensionPrefsModule@resource:///org/gnome/shell/extensionPrefs/main.js:74
  wrapper@resource:///org/gnome/gjs/modules/lang.js:178
  Application<._selectExtension@resource:///org/gnome/shell/extensionPrefs/main.js:89
  wrapper@resource:///org/gnome/gjs/modules/lang.js:178
  Application<._onCommandLine@resource:///org/gnome/shell/extensionPrefs/main.js:239
  wrapper@resource:///org/gnome/gjs/modules/lang.js:178
  main@resource:///org/gnome/shell/extensionPrefs/main.js:377
  @<main>:1

gnome 3.25.92
After trying manual install from source, i got the message from gnome-tweak-tool

request(): make Night Light provide "Profiles" feature

Checklist:

  • I realise this extension extends on the existing GNOME night light feature and can only control the temperature.
  • I have gone through the extension settings to check that this feature is available.

Feature Description:

I'm constantly tweaking sliders because I need to set different bright and temperature combinations for work and games.

Hence, I think it would be cool to set profiles for each of them.

In addition to that, it is important for users to be able to duplicate profiles, in order to specialize them (just like classes extending classes).

bug(extension): GNOME 3.32 support

Describe the bug
Extension does not work with GNOME Shell 3.32. In the log appears following line:

Mar 16 11:19:36 ArchNotebook gnome-shell[19525]: Extension "[email protected]" had error: TypeError: this._construct is not a function

Most probably the issue is connected with recent GNOME Shell changes which break Lang.Class in favor of ES6 classes.
https://gitlab.gnome.org/GNOME/gnome-shell/commit/bacfdbbb0338b94295c64093523bca7ba8d5c5ca

System Information:

  • OS: Arch Linux (last updated on Mar 16)
  • GNOME Version: 3.32.0

GNOME 3.26 support

The extension currently only supports GNOME 3.24 and based on my understanding, #5 may highlight some schema changes that causes this extension to break on the newer release.

To do:

  • Set up a VM with GNOME 3.26
  • Identify schema changes

request(): AutomaThemely integration

It would be awesome to have a toggle in the UI to also change between Light and Dark mode based on time of day, and a manual option.

AutomaThemely can already handle theme switching based on time so it would be great to have a UI extension to enable and disable this script.

Options for the dropdown:
With AutomaThemely running, "Automatic" would be enabled, and then manual Light and Dark options. When manual option is chosen, the theme is switched and AutomaThemely stops running.

ps: You are gods for making this.

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.