thompsonate / shifty Goto Github PK
View Code? Open in Web Editor NEW☀️ A macOS menu bar app that gives you more control over Night Shift.
Home Page: http://shifty.natethompson.io
License: GNU General Public License v3.0
☀️ A macOS menu bar app that gives you more control over Night Shift.
Home Page: http://shifty.natethompson.io
License: GNU General Public License v3.0
Hi there, I'm curious if it's possible to use Shifty to disable Night Shift if a certain app is running at all - rather than just when it's in focus.
I have it disabled for programs like Photoshop, Lightroom, and VLC, but if I restart my machine, Shifty won't remember this and I have to make sure it ignores the programs all over again. I'm running 1.0.2.
On my Mac, using latest macOS Sierra version, I can't use the auto-activation of Night Shift based on location. I only have this message when I choose the option :
I checked in System Preference, but Shifty can indeed access my location. And my Mac is located correctly in Plans, for instance.
Let me know if you need more information.
forums.macurmors.com
.macrumors.com
.Would be cool to use the TrueTone support off master
Hey!
Wouldn't it be cool if Shifty could drive Philips Hue lights, like F.lux does (see https://www.howtogeek.com/248915/how-to-sync-f.lux-and-philips-hue-lights-for-eye-friendly-evening-lighting/)?
It could switch them on/off at the same time than Night Shift, and could even sync the lights' luminosity with Night Shift's.
Some references / related apps:
I think it would be great if Shifty could also enable the "Automatically adjust screen brightness" option when enabling Night Shift. During the day, I like to keep the auto brightness option disabled, as I need my screen to be on max brightness at all times, as this is how my screen was calibrated. In the evening (i.e. when Night Shift is enabled) I don't mind about color accuracy anymore and would also like the display to adjust the brightness automatically to be less straining on the eyes.
Thoughts?
Hi,
A quick toggle to activate/deactivate dark mode under macOS Mojave would be awesome.
Since I installed this app night shift is not enabling itself automatically at evening. I'm not sure if it's related to this app, I uninstalled it to see if it's going to work properly tomorrow.
Are you aware of similar problems?
The problem is this only happens once a day so I can't reliably reproduce/test it. Let me describe my usual routine when I notice it.
Night Shift is enabled sunset to sunrise. No scheduled dark mode or anything. It will correctly turn on at sunset.
In the evening, I will watch some series with IINA (video player app). I've disabled night shift for this app, and Shifty correctly toggles on/off whenever IINA is in the foreground. No issues there.
I will eventually close the screen of the laptop (2016 tbMBP by the way) and go to bed. In the morning, I will open the screen after sunrise but night shift will still be on. A quick look in System Preferences - Displays - Night Shift shows that the Manual Turn On Until Sunrise is checked (though at no point did I manually toggle night shift).
Whenever this has happened, I've shut down shifty, disabled and re-enabled night shift, and turned Shifty back on. The same thing keeps happening. I think it began in 0.3 but honestly can't be sure. It's definitely happening now in 0.4.
I'm aware that it's a beta, so issues are expected.
But 10.13.4 will likely be released to the public very soon, would be great if the issue was fixed ahead of time.
First off, great app! Very useful, love the simplicity.
Thought it would be neat if there were a feature allowing you to customize the colors that shade the screen? I've attached a couple photos to show an example. The photos are from a paid app - NightTone - which seems similar to Shifty.
*notice the options to select a color, or open the color picker to choose your own.
It would be great to be able to add an option to disable Night Shift automatically for an app only when it is in full screen. It would be very useful for IINA/VLC/etc.
Before anything, congratulations on the great app :)
Something that I'm really missing from flux is the custom curve for the intensity, with night shift you either have it enabled or you don't. Would it be possible to implement a similar feature and be able to define a custom curve so we can have a gradual color change?
When I quit a web browser using Cmd+Q or the Quit option from the menu, the browser sometimes immediately reopens (I'd estimate around 70% of the time). This only seems to happen when Shifty is running and when the "Website Shifting" feature is enabled.
I've tested this with Chrome, Safari and Vivaldi.
It would be nice if Shifty would also change the Terminal profile when (un)setting Dark Mode. This would only require a check box, two input fields for the theme names and some AppleScript. :-)
Please see https://stefan.sofa-rockers.org/2018/10/23/macos-dark-mode-terminal-vim/ for details.
I suggest to add additional sliders for monitor brightness.
I find the automatic adjustment of brightness by the OS to be inadequate which leaves me with re-adjusting brightness in the system preferences quite often.
Also I think this would integrate quite nicely.
Thanks for considering! :-)
Great news for the dark mode synced with Night Shift in the last version !
One suggestion in the same range : change the wallpaper when Night Shift is activated. That way, we could choose two backgrounds, one for the day and one less bright for the night.
Thanks for your work.
Basically the app does nothing for me! I have the schedule set to "Sunset to Sunrise" yet Night Shift does not come on at sunset. I can turn it on manually using Shifty, but then it fails to disable for any apps I set as "Disabled". "Disabled for an hour" does work.
I'm happy to build and debug a little but are you aware of anything that might cause the behaviour I'm seeing, or anywhere in particular I should start looking?
Night Shift was still on when I opened my laptop this morning. The logs seem to imply that it was correctly disabled, but then incorrectly reenabled:
[Sep 6, 2018 at 9:30:41 AM]: BLNotificationBlock called
[Sep 6, 2018 at 9:30:41 AM]: Schedule: sunSchedule
[Sep 6, 2018 at 9:30:41 AM]: Night Shift state: false
[Sep 6, 2018 at 9:30:42 AM]: Screen did wake
[Sep 6, 2018 at 9:30:53 AM]: Night Shift state: true
I think it would be nice to have the menubar icon change depending on the on/off status of Night Shift. You could for example keep the current icon for On and have a fully white sun as Off, or alternatively current icon for Off and a moon for On.
It will go well with the quick toggle option, which I love.
Thanks for a great app!
So this was an issue with f.lux as well. The option to disable for a given app is only accessible 1. while the app is running, and 2. from the Shifty icon in the menu bar.
I ran into an issue disabling it for a game (Starcraft 2) - the game automatically runs full screen, and doesn't allow you to see the menu bar at the top. So the only way to choose this option is to run the game in windowed mode (thankfully it existed) so I could see the menu bar.
Proposed - global keyboard shortcut to toggle disable for currently running app, or an interface where you can manually add apps for it to be disabled for. Otherwise, it would be impossible to actually toggle this if the app doesn't support windowed mode.
Admittedly this may go beyond the scope of this simple (yet super useful) tool, but in case it's not too much effort, it would be great to have.
I've had shifty running for 9 days, the total uptime of my iMac and I just noticed the computer running sluggish. I checked Activity Monitor and Shifty was consuming 2.8GB of memory.
This isn't an issue, this is just to say thanks for this great little piece of software. It's exactly what I was looking for for Night Shift!
Not sure if this is intentional or not, but when night shift is on and I choose "Turn off night shift" it only stays off until I switch to another app. Even clicking on the Shifty menu again will turn it back on.
On an unrelated note, has anyone else noticed that the menu bar in dark mode is one pixel shorter than the normal one? I'm probably just OCD but it messes with my window positions when it switches.
I just started today using the non-default color temperature value, but the highest possible value and it already happened twice that it got reset back to the middle value.
When a color temperature change is invoked via Shifty, the color temperature seems to change very gradually. In contrast, the changes performed via System Preferences seems to be instantaneous, so I'm assuming Shifty is making the changes gradual.
Would it be possible to mimic the system behavior, where these changes in color temperature are (almost) instantaneous? It gives a better idea of what color temperature I would like, especially when modifying it with shortcuts.
While I have a temporary solution in place that should determine the location if CoreLocation doesn't, getting the times from CoreBrightness will be more accurate. This will also mean Shifty will not need location permissions, which is a plus. I really don't want to take this out of beta without getting the times from the system, but I don't think I can figure this out myself.
For background, see discussion in #14
Hi, (I don't know if this is related to the other issue about 10.13.4 and what you're doing already fixes this, In which case I'm sorry)
I have Night Shift set to be enabled from sunset to sunrise. In the evening NS is enabled, then I put the computer to sleep, in the morning I wake it up and NS stays enabled. Now the only solution is to quit Shifty, turn off NS, then open Shifty again.
I tried the last two versions of Shifty, I'm on MacOS 10.13.4.
The title is long so it's kinda self explanatory XD
When looking on how to obtain the sunrise and sunset times I remember seeing something about the curve, so it may be possible to save that value and restart from that.
I would like to invoke Dark Mode with the Night Shit schedule. On the latest public beta of macOS 10.14 Dark Mode is not switched on automatically.
the pictures
https://www.instagram.com/p/Bq87CxLAq9O/?utm_source=ig_share_sheet&igshid=14in7arzyx5r
I have a Acer PE270 display, when I use my macbook pro 2017 15', shifty works fine on the external display, when I use my macbook pro 2017 13', shifty just works on internal display, I dont know why
It would be great if macOS's dark mode could automatically be enabled with Night Shift. That's pretty much the only feature of F.lux that I miss. Good job with this, it's really helpful! 👍🏽
Hey!
macOS controls when Night Shift is enabled based on the sunset/sunrise times. Shifty allows you to change the intensity or even turn it on/off conveniently, and also lets you disable for an hour, a specific time, and for a specific application. However, I don't think it should request my location and take over enabling and disabling Night Shift – I think macOS should be left to do this.
In 0.4, I disabled scheduled Night Shift because I didn't want Shifty to take control of sunrise/sunset enabling and disabling. However, I still kept on getting the "Shifty needs your location; disable scheduling" warning.
Is there a changelog anywhere?
Requirements add this one.
Thanks for your great work, it is really handy!
It's great to toggle Shifty by using custom shortcuts, but an Alfred workflow can make it more visually straightforward, I'm not a programmer, it's hard to make this happen. If you are an Alfred user as well, please help!
For specific features, please check this workflow (on Packal.org) for Amphetamine (Mac App Store), it can toggle on/off and toggle on for a certain period.
Hi,
After updating to macOS 10.14.3, my Mac came up with Light Mode enabled after reboot.
It was already supposed to go into scheduled Night Shift, so I expected the theme to change to Dark when Shifty launched.
The theme didn't change though. It only did switch over to Dark Mode when I went into Shifty and disabled Night Shift before reenabling it again.
I can easily reproduce this by quitting Shifty, switching the macOS theme to the opposite mode, and relaunching Shifty. It should check at startup if the theme is set according to the prefs (Scheduled Dark Mode) and if not, switch the theme to the correct one. It fails to do so and requires toggling Night Shift off and on.
Because macos mojave brings a whole new black theme. And the commonly used software also support the black theme. I don’t think the night view mode is really need in black theme. So, if Shify can support something like "enable for Microsoft Word" or "enable for PDF Expert".
It would be nice to sync the preferences and the "Disable for %app%" via iCloud or Dropbox.
This especially comes in handy when you have a lot of apps Disabled, like PS, Sketch, VLC, QuickTime etc.
I have Shifty set to enabled for sunset to sunrise, but it doesn't work. If I go into system preferences to manually turn on night shift, it works. As soon as I close system preferences, the setting is lost.
I'm not using wifi, not sure if that affects this. The app just seems to force night shift to stay off unless I manually turn it on.
Homebrew is a really great package manager for macOS, and it would benefit those using it to have this published as a formula there. You can read more here https://github.com/Homebrew/brew/blob/master/docs/Formula-Cookbook.md
The main thing is that I, as a user, can get updates without having to come and download stuff again from here. Unless of course you use Sparkle to update your app. Either way, this is still a convenient way to install 😄 . I would greatly appreciate it!
Currently brew cask search shifty
returns nothing.
I am saddened that the program is in English only.
I suggest to localize the program.
I am ready to assist in the translation into Russian.
(For example, you can use the service Crowdin or any other. Crowdin is free for Open source projects.)
The new 2018 Macs now ship with Apple's new True Tone settings similar to iOS where it detects the rooms white balance and adjust accordingly. Its actually quite pleasant and having used it for a few hours out of the box, I was basically sold on it... except I can't have it on when editing photos; colour balance gets thrown off. Thats why I like Shifty thus far; it lets me toggle off night shift when photo editing.
True tone gives a very subtle shift to the whites and it varies room to room based on the light, so I need to leave it off because I cant tell when its shifting.
I'm not sure if its possible to adjust the true tone the same way as night shift, but it seems related and the arguments for needing a night shift adjustment are usually the same as needing one for true tone.
Really like the app thus far, so thanks for sharing your hard work 👍
It would be nice to add Opera to the list of supported browsers for specific website disabling, especially as it's a Chromium / Blink browser and Shifty already supports Chrome and Vivaldi.
The Donate page linked from Shifty and shifty.natethompson.io
hangs in an ambiguous state for a few seconds while it reidrects to the PayPal processing page.
This has been happening constantly on my laptop, but I'm not sure how reproducible it is on other devices.
It would be useful if the shifty.natethompson.io/donate
had feedback text, like "Redirecting you to PayPal".
I don't want to disable Night Shift when using Safari, but I want to disable it if I'm watching Netflix in Safari. I'd be cool to use the current tab for the disable rules. Obtaining current tab url isn't an issue since most browser make this information available through Scripting Addition, but I'm not sure if there's a smarter way then just polling every arbitrary amount of time.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.