Comments (3)
I wouldn't want to implement this with polling, especially since I'd have to deal with multiple browsers. Maybe the best solution would be a browser extension that sends an NSNotification, but that would take a lot of work to implement.
Probably the best solution for you, although not ideal, is to use a different browser for Netflix and set Shifty to disable for that browser. Also, customizable global keyboard shortcuts are coming in the next update, so that should make it easier to toggle manually.
from shifty.
I may give this a shot if you're interested, even though my Swift knowledge is basically nothing. My idea would be to add some logic in the updateCurrentApp
method and:
Get the current app bundle id:
- If it matches a bundle id rules, disable Night Switch (basically the current logic)
- if it doesn't match any bundle id rule but it matches a browser rule:
- try and get current tab url and check for any rule matching that
- use accessibility api to setup notifications for listening on window title change
- when title changes, obtain the url again and check for rule again
- when focused app changes again, deactivate notifications
from shifty.
If we can get notifications on window title change, then this is exactly what we'd want to do. Feel free to give it a shot!
from shifty.
Related Issues (20)
- High CPU Usage / Energy consumtion HOT 6
- Night Shift Turns on After Sleep HOT 1
- True Tone doesn't stay disabled when set from Shifty menu
- Apple silicon version HOT 1
- Shortcuts integration HOT 1
- Adding website shifting for Brave browser HOT 2
- Strange screen color changes HOT 3
- Set Apple XDR Display Reference Mode (aka Preset) via Shifty HOT 3
- Auto-Update Issue on Monterey
- Website shifting for Firefox HOT 2
- Delay when toggling night shift for an app
- Add an option to automatically turn off night shift for full screen apps
- Sunset to sunrise schedule not working HOT 1
- Development?
- Add support for Arc browser
- Please support AppleScript!!
- Brave browser support (website shifting)
- Request: Feature to turn off Night Shift during screen saver
- Menu keyboard shortcut display clips off function key number
- Launch Shifty at login not working properly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shifty.