Comments (4)
Gold star for you! Not only is that a great idea, you provided example code!
In my mind this feature would also bookend a method to mange different kinds of display assertions. For example it's probably important to avoid interrupting the user if they are in a Zoom, but not while watching YouTube. Both set a screen assertion, and right now super
considers any screen assertion as equally valid.
Worshipping this idea... how would you "feature-ize" this? Would you want to define a list of focus states that are allowed always... or ignore certain focus types? For example; --focus-allow=thing1,thing2
and --focus-disallow=thing1,thing2
. Again, the goal is to provide the most straight forward options for the command string.
Full disclosure though, I have to get major upgrades working first...
from super.
As far as "major upgrades working first..." goes, yes, I already consider this idea a minor feature.
In the long run, yes, but maybe also a basic on/off as well, where when turned on, if those two options are empty, then just the basic idea of filtering a custom focus, i.e. --focus-filter
, and --no-focus-filter
, with --focus-(dis)allow=thing1,thing2
both requiring --focus-filter
.
So turning it on, and leaving the allow/disallow options empty, defaults to filtering the word focus. Setting the allow/disallow options to anything, would override the basic focus filter. Turning it off, lets it operate the way it is now (which should remain the default if neither option is supplied).
In short most people probably are not using the Focus feature intentionally (that is they have no custom focus'), so allowing for the basic just focus makes it easier for admins.
from super.
I was just about to submit this as a feature request and am glad I see someone already had the idea.
I agree with the idea to use --focus-allow=thing1,thing2
and --focus-disallow=thing1,thing2
options. I've been using the Work focus mode lately and would like to make sure that doesn't block super, along with something like YouTube.
from super.
Oh as a minor workaround for anyone interested in editing their copy of super for this, find the line that reads:
focusSTATUS=$(plutil -extract data.0.storeAssertionRecords.0.assertionDetails.assertionDetailsModeIdentifier raw -o - "/Users/$currentUSER/Library/DoNotDisturb/DB/Assertions.json" | grep -ic com.apple.)
And insert either grep -v com.apple.focus |
or grep -v com.apple.focus.FocusNameHere |
before the existing grep
, i.e.
focusSTATUS=$(plutil -extract data.0.storeAssertionRecords.0.assertionDetails.assertionDetailsModeIdentifier raw -o - "/Users/$currentUSER/Library/DoNotDisturb/DB/Assertions.json" | grep -v com.apple.focus | grep -ic com.apple.)
This is what I have been doing with mine. Note: grep
can take multiple -v
's allowing for the identification of multiple custom focuses.
from super.
Related Issues (20)
- macOS Sonoma 14.4: launchctl kickstart -k is no longer permitted for critical system processes HOT 1
- How to turn off "Automatically relaunch the super workflow" HOT 1
- Superman can't install xcode when brew is installed with xcode CLI tools. HOT 1
- In macOS 14.4, the "launchctl" "kickstart" command has been deprecated by Apple. HOT 1
- Super 4.0.3 appears to launch every 60 seconds on some Sonoma Macs (both Intel and Apple Silicon) HOT 5
- password within plain text log HOT 1
- Upgrade from older OS to latest, Storage needed HOT 1
- Force to run update at the end of deferral timer feature request. HOT 1
- OS Update Stalled on all devices HOT 3
- Conflicting super configs when super profile is updated HOT 1
- Alternate workflow usage without affecting existing update workflow settings HOT 2
- super softwareupdate at login window with no GUI user logged in consistently hangs at black screen with Apple logo and progress bar HOT 5
- Jamf-Pro-External-Application-Custom-Schema-com.macjutsu.super-v4.1.0-beta1 HOT 1
- Problem with 14.5 Update on Silicon Macs HOT 1
- 4.1.0 - Update Failed Dialog doesn't have the option to close the dialog HOT 6
- 4.1.0 - Status: Deferral restrictions have changed since last super workflow run, full software status check required HOT 2
- Superman not going through workflow on m1 Machine HOT 1
- Unable to Successfully Update Major OS feature versions HOT 1
- Sequoia - 4.1.0b1 - Erroneous Non-system update triggered HOT 8
- can IBM and mist cli installed manually ? HOT 1
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 super.