Showing preview only (1,590K chars total). Download the full file or copy to clipboard to get everything.
Repository: TheBoredTeam/boring.notch
Branch: main
Commit: 8fb87eda2468
Files: 183
Total size: 1.5 MB
Directory structure:
gitextract_x86hf_yn/
├── .devcontainer/
│ └── devcontainer.json
├── .github/
│ ├── FUNDING.yml
│ ├── ISSUE_TEMPLATE/
│ │ ├── 1-bug-report-form.yml
│ │ ├── 1-feature-request-form.yml
│ │ ├── config.yml
│ │ ├── feature_request.md
│ │ └── old_bug_report.md
│ ├── PULL_REQUEST.md
│ ├── dependabot.yml
│ ├── scripts/
│ │ ├── extract_version.py
│ │ └── remove_beta.py
│ └── workflows/
│ ├── build_reusable.yml
│ ├── cicd.yml
│ ├── manual_build.yml
│ ├── release.yml
│ ├── static.yml
│ └── update-version-dropdown.yml
├── .gitignore
├── BoringNotchXPCHelper/
│ ├── BoringNotchXPCHelper.entitlements
│ ├── BoringNotchXPCHelper.swift
│ ├── BoringNotchXPCHelperProtocol.swift
│ ├── Info.plist
│ └── main.swift
├── CONTRIBUTING.md
├── Configuration/
│ ├── dmg/
│ │ ├── .background/
│ │ │ └── background.tiff
│ │ ├── create_dmg.sh
│ │ └── dmgbuild_settings.py
│ └── sparkle/
│ └── generate_appcast
├── LICENSE
├── README.md
├── SECURITY.md
├── THIRD_PARTY_LICENSES
├── boringNotch/
│ ├── Assets.xcassets/
│ │ ├── AccentColor.colorset/
│ │ │ └── Contents.json
│ │ ├── AppIcon.appiconset/
│ │ │ └── Contents.json
│ │ ├── Contents.json
│ │ ├── Github.imageset/
│ │ │ └── Contents.json
│ │ ├── bolt.imageset/
│ │ │ └── Contents.json
│ │ ├── chrome.imageset/
│ │ │ └── Contents.json
│ │ ├── defaultmusic.imageset/
│ │ │ └── Contents.json
│ │ ├── logo.imageset/
│ │ │ └── Contents.json
│ │ ├── logo2.imageset/
│ │ │ └── Contents.json
│ │ ├── plug.imageset/
│ │ │ └── Contents.json
│ │ ├── sparkle.imageset/
│ │ │ └── Contents.json
│ │ ├── spotlight.imageset/
│ │ │ └── Contents.json
│ │ └── theboringteam.imageset/
│ │ └── Contents.json
│ ├── BoringViewCoordinator.swift
│ ├── ContentView.swift
│ ├── Info.plist
│ ├── Localizable.xcstrings
│ ├── MediaControllers/
│ │ ├── AppleMusicController.swift
│ │ ├── MediaControllerProtocol.swift
│ │ ├── NowPlayingController.swift
│ │ ├── SpotifyController.swift
│ │ └── YouTube Music Controller/
│ │ ├── YouTubeMusicAuthentication.swift
│ │ ├── YouTubeMusicController.swift
│ │ ├── YouTubeMusicModels.swift
│ │ └── YouTubeMusicNetworking.swift
│ ├── Preview Content/
│ │ └── Preview Assets.xcassets/
│ │ └── Contents.json
│ ├── Providers/
│ │ └── CalendarServiceProviding.swift
│ ├── Shortcuts/
│ │ └── ShortcutConstants.swift
│ ├── XPCHelperClient/
│ │ ├── BoringNotchXPCHelperProtocol.swift
│ │ └── XPCHelperClient.swift
│ ├── animations/
│ │ ├── HelloAnimation.swift
│ │ └── drop.swift
│ ├── boring.m4a
│ ├── boringNotch.entitlements
│ ├── boringNotchApp.swift
│ ├── components/
│ │ ├── AnimatedFace.swift
│ │ ├── BottomRoundedRectangle.swift
│ │ ├── Calendar/
│ │ │ └── BoringCalendar.swift
│ │ ├── EmptyState.swift
│ │ ├── HoverButton.swift
│ │ ├── Live activities/
│ │ │ ├── BoringBattery.swift
│ │ │ ├── DownloadView.swift
│ │ │ ├── InlineHUD.swift
│ │ │ ├── LiveActivityModifier.swift
│ │ │ ├── MarqueeTextView.swift
│ │ │ ├── OpenNotchHUD.swift
│ │ │ └── SystemEventIndicatorModifier.swift
│ │ ├── LottieView.swift
│ │ ├── Music/
│ │ │ ├── LottieAnimationView.swift
│ │ │ └── MusicVisualizer.swift
│ │ ├── Notch/
│ │ │ ├── BoringExtrasMenu.swift
│ │ │ ├── BoringHeader.swift
│ │ │ ├── BoringNotchSkyLightWindow.swift
│ │ │ ├── BoringNotchWindow.swift
│ │ │ ├── NotchHomeView.swift
│ │ │ └── NotchShape.swift
│ │ ├── Onboarding/
│ │ │ ├── MusicControllerSelectionView.swift
│ │ │ ├── OnboardingFinishView.swift
│ │ │ ├── OnboardingView.swift
│ │ │ ├── PermissionsRequestView.swift
│ │ │ ├── SparkleView.swift
│ │ │ └── WelcomeView.swift
│ │ ├── ProgressIndicator.swift
│ │ ├── Settings/
│ │ │ ├── EditPanelView.swift
│ │ │ ├── ListItemPopover.swift
│ │ │ ├── MusicSlotConfigurationView.swift
│ │ │ ├── SettingsView.swift
│ │ │ ├── SettingsWindowController.swift
│ │ │ └── SoftwareUpdater.swift
│ │ ├── Shelf/
│ │ │ ├── Models/
│ │ │ │ ├── Bookmark.swift
│ │ │ │ └── ShelfItem.swift
│ │ │ ├── Services/
│ │ │ │ ├── ImageProcessingService.swift
│ │ │ │ ├── QuickLookService.swift
│ │ │ │ ├── QuickShareService.swift
│ │ │ │ ├── ShareServiceFinder.swift
│ │ │ │ ├── ShelfActionService.swift
│ │ │ │ ├── ShelfDropService.swift
│ │ │ │ ├── ShelfPersistenceService.swift
│ │ │ │ ├── TemporaryFileStorageService.swift
│ │ │ │ └── ThumbnailService.swift
│ │ │ ├── ViewModels/
│ │ │ │ ├── ShelfItemViewModel.swift
│ │ │ │ ├── ShelfSelectionModel.swift
│ │ │ │ └── ShelfStateViewModel.swift
│ │ │ └── Views/
│ │ │ ├── DragPreviewView.swift
│ │ │ ├── FileShareView.swift
│ │ │ ├── ShelfItemView.swift
│ │ │ └── ShelfView.swift
│ │ ├── Tabs/
│ │ │ ├── TabButton.swift
│ │ │ └── TabSelectionView.swift
│ │ ├── TestView.swift
│ │ ├── Tips/
│ │ │ └── TipStore.swift
│ │ ├── Webcam/
│ │ │ └── WebcamView.swift
│ │ └── WhatsNewView.swift
│ ├── enums/
│ │ └── generic.swift
│ ├── extensions/
│ │ ├── ActionBar.swift
│ │ ├── BundleInfos.swift
│ │ ├── Button+Bouncing.swift
│ │ ├── Color+AccentColor.swift
│ │ ├── ConditionalModifier.swift
│ │ ├── DataTypes+Extensions.swift
│ │ ├── KeyboardShortcutsHelper.swift
│ │ ├── MouseTracker.swift
│ │ ├── NSImage+Extensions.swift
│ │ ├── NSItemProvider+LoadHelpers.swift
│ │ ├── NSMenu+AssociatedObject.swift
│ │ ├── NSScreen+UUID.swift
│ │ ├── PanGesture.swift
│ │ └── URL+SecurityScoped.swift
│ ├── helpers/
│ │ ├── AppIcons.swift
│ │ ├── AppleScriptHelper.swift
│ │ ├── ApplicationRelauncher.swift
│ │ ├── AssociatedObject.swift
│ │ ├── AudioPlayer.swift
│ │ ├── Clipboard+Content.swift
│ │ └── MediaChecker.swift
│ ├── managers/
│ │ ├── BatteryActivityManager.swift
│ │ ├── BrightnessManager.swift
│ │ ├── CalendarManager.swift
│ │ ├── ImageService.swift
│ │ ├── MusicManager.swift
│ │ ├── NotchSpaceManager.swift
│ │ ├── VolumeManager.swift
│ │ └── WebcamManager.swift
│ ├── menu/
│ │ └── StatusBarMenu.swift
│ ├── metal/
│ │ └── visualizer.metal
│ ├── models/
│ │ ├── BatteryStatusViewModel.swift
│ │ ├── BoringViewModel.swift
│ │ ├── CalendarModel.swift
│ │ ├── Constants.swift
│ │ ├── EventModel.swift
│ │ ├── MusicControlButton.swift
│ │ ├── PlaybackState.swift
│ │ └── SharingStateManager.swift
│ ├── observers/
│ │ ├── DragDetector.swift
│ │ ├── FullscreenMediaDetection.swift
│ │ └── MediaKeyInterceptor.swift
│ ├── private/
│ │ └── CGSSpace.swift
│ ├── sizing/
│ │ └── matters.swift
│ └── utils/
│ └── Logger.swift
├── boringNotch.xcodeproj/
│ ├── project.pbxproj
│ └── project.xcworkspace/
│ ├── contents.xcworkspacedata
│ └── xcshareddata/
│ ├── IDEWorkspaceChecks.plist
│ ├── WorkspaceSettings.xcsettings
│ └── swiftpm/
│ └── Package.resolved
├── crowdin.yml
├── mediaremote-adapter/
│ ├── MediaRemoteAdapter.framework/
│ │ └── Versions/
│ │ └── A/
│ │ ├── MediaRemoteAdapter
│ │ ├── Resources/
│ │ │ └── Info.plist
│ │ └── _CodeSignature/
│ │ └── CodeResources
│ ├── MediaRemoteAdapterTestClient
│ └── mediaremote-adapter.pl
└── updater/
└── appcast.xml
================================================
FILE CONTENTS
================================================
================================================
FILE: .devcontainer/devcontainer.json
================================================
{
"image": "mcr.microsoft.com/devcontainers/universal:2",
"features": {
}
}
================================================
FILE: .github/FUNDING.yml
================================================
github: [Alexander5015, iamharshdev]
ko-fi: alexander5015
================================================
FILE: .github/ISSUE_TEMPLATE/1-bug-report-form.yml
================================================
---
name: Bug Report
description: File a bug report.
title: '[Bug] '
labels:
- bug
- unconfirmed
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report!
- type: textarea
id: what-happened
attributes:
label: What happened? What are the steps to reproduce the issue?
description: >-
Describe the bug and include the steps to replicate the issue. Issues
with images or videos will be resolved faster.
placeholder: Clearly explain the issue. Please limit each post to one issue.
validations:
required: true
- type: textarea
id: expected-behaviour
attributes:
label: What did you expect to happen?
description: A clear and concise description of what you expected to happen.
validations:
required: true
- type: dropdown
id: version
attributes:
label: Boring Notch Version
description: >-
What version of our software are you running? (Go to ✦ in the menu bar >
Settings > About)
options:
- Select a version
- v2.7.3
- v2.7.2
- v2.7.1
- v2.7
- v2.7-rc.3
- v2.6
validations:
required: true
- type: input
id: operating-system
attributes:
label: macOS Version
description: Go to > About This Mac
validations:
required: true
- type: dropdown
id: music-source
attributes:
label: Music Source? (If relevant)
description: >-
If this issue is related to music, what music source did you select in Boring Notch settings?
options:
- Now Playing
- Apple Music
- Spotify
- YouTube Music
validations:
required: false
- type: input
id: music-app
attributes:
label: Music App (If using Now Playing)
validations:
required: false
- type: input
id: music-website
attributes:
label: Website (If using browser for music)
validations:
required: false
- type: textarea
id: logs
attributes:
label: Relevant log output
description: >-
Please copy and paste any relevant log output. This will be
automatically formatted into code, so no need for backticks.
render: shell
- type: checkboxes
id: checks
attributes:
label: Checks
description:
options:
- label: I haven't found any duplicates with my issue.
required: true
================================================
FILE: .github/ISSUE_TEMPLATE/1-feature-request-form.yml
================================================
name: Feature Request
description: Suggest a new idea or enhancement for Boring Notch
title: "[FEATURE] "
labels: []
body:
- type: markdown
attributes:
value: |
## Feature Request
Thanks for helping make **Boring Notch** better! Please check [existing requests](https://github.com/TheBoredTeam/boring.notch/issues?q=is%3Aissue) before submitting to avoid duplicates.
- type: textarea
id: problem
attributes:
label: Is your feature request related to a problem?
description: |
Please provide a clear description of the problem or pain point this feature would address.
**Example:** "I often miss my next meeting because I work in full-screen mode and can't see the system clock or calendar notifications."
placeholder: "I'm frustrated when... or It would be great if..."
validations:
required: true
- type: textarea
id: solution
attributes:
label: Describe the solution you'd like
description: |
How should Boring Notch handle this? Describe the behavior, UI, or interaction you imagine in detail.
**Example:** "When a meeting is starting in 5 minutes, the notch could expand slightly to show a countdown timer or the meeting title."
placeholder: "I would like the notch to..."
validations:
required: true
- type: textarea
id: use-cases
attributes:
label: Use cases & user scenarios
description: |
Describe specific scenarios where this feature would be valuable. Who would benefit from this and how often would it be used?
**Example:** "Remote workers who attend 5+ video meetings daily would use this constantly. Students could benefit during online classes."
placeholder: "This would help users who..."
validations:
required: false
- type: textarea
id: additional-context
attributes:
label: Additional context & screenshots
description: |
Add any other context, mockups, wireframes, or screenshots about the feature request here. Visuals are incredibly helpful!
You can drag and drop images directly into this field.
placeholder: "Here is a mockup of how the hover state should look..."
validations:
required: false
- type: checkboxes
id: contribution
attributes:
label: Willingness to contribute
description: "We love community contributions! Would you be willing to help build this?"
options:
- label: "Yes, I can write the code for this feature"
- label: "Yes, I can help with design/mockups"
- type: checkboxes
id: checklist
attributes:
label: Pre-submission checklist
description: "Please confirm the following before submitting:"
options:
- label: "I have searched existing issues to ensure this isn't a duplicate"
required: true
- label: "I have provided sufficient detail for the team to understand the request"
required: true
================================================
FILE: .github/ISSUE_TEMPLATE/config.yml
================================================
blank_issues_enabled: false
================================================
FILE: .github/ISSUE_TEMPLATE/feature_request.md
================================================
<!--- This issue template is being replaced with the updated issue form for new features -->
---
name: Feature request
about: Suggest an idea for this project
title: "[FEATURE]"
labels: ''
assignees: ''
---
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Additional context**
Add any other context or screenshots about the feature request here.
**Checks**
- [x] I haven't found any duplicates with my issue.
================================================
FILE: .github/ISSUE_TEMPLATE/old_bug_report.md
================================================
<!--- This issue template is deprecated, use the updated issue form for bug reports -->
---
name: Bug report
about: Create a report to help us improve
title: "[BUG]"
labels: 'bug,unconfirmed'
assignees: ''
---
**Describe the bug**
A clear and concise description of what the bug is.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
**Expected behavior**
A clear and concise description of what you expected to happen.
**Screenshots or recordings**
If applicable, add screenshots to help explain your problem.
**Additional context**
Add any other context about the problem here. Mentioning what version are you using.
**Checks**
- [x] I haven't found any duplicates with my issue.
================================================
FILE: .github/PULL_REQUEST.md
================================================
## Pull Request template
Please, go through these steps before you submit a PR.
1. Make sure that your PR is not a duplicate.
2. If not, then make sure that:
a. Your changes MUST NOT change translations. Please submit translations on [Crowdin](https://crowdin.com/project/boring-notch).
b. You have tested the code yourself to ensure it builds correctly and functions as intended.
3. **After** these steps, you're ready to open a pull request.
a. Your pull request MUST NOT target the `main` branch on this repository. You probably want to target `dev` instead.
b. Give a descriptive title to your PR.
c. Describe your changes. PR should also include screen recording or screenshots to show the changes that were made.
d. Put `closes #XXXX` in your description to link your PR to the issue(s) that it fixes (if such).
IMPORTANT: Please review the [CONTRIBUTING.md](../CONTRIBUTING.md) file for detailed contributing guidelines.
**PLEASE REMOVE THIS TEMPLATE BEFORE SUBMITTING**
================================================
FILE: .github/dependabot.yml
================================================
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
version: 2
updates:
- package-ecosystem: "github-actions" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
================================================
FILE: .github/scripts/extract_version.py
================================================
#!/usr/bin/env python3
from __future__ import annotations
import json
import os
import re
import semver
import subprocess
import sys
from argparse import ArgumentParser
SEMVER_RE = re.compile(r"v?[0-9]+\.[0-9]+(?:\.[0-9]+)?(?:-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?")
def find_first_valid(text: str):
for cand in SEMVER_RE.findall(text or ""):
s = cand.lstrip("v")
# Normalize for parsing: 2.7 -> 2.7.0, 2.7-beta -> 2.7.0-beta
# Regex: look for X.Y at start, not followed by .Z
normalized = re.sub(r"^([0-9]+\.[0-9]+)(?![0-9]*\.)", r"\1.0", s)
try:
parsed = semver.VersionInfo.parse(normalized)
return s, parsed
except Exception:
continue
return None, None
def write_github_output(version: str | None, is_beta_flag: bool) -> None:
out = os.environ.get("GITHUB_OUTPUT")
if not out:
return
try:
with open(out, "a", encoding="utf-8") as f:
f.write(f"version={version or ''}\n")
f.write(f"is_beta={str(is_beta_flag).lower()}\n")
except Exception:
pass
def main(argv=None) -> int:
p = ArgumentParser()
p.add_argument("-c", "--comment", help="Comment body to scan (defaults: $COMMENT or stdin)")
args = p.parse_args(argv)
comment = args.comment or os.environ.get("COMMENT")
if not comment:
comment = sys.stdin.read() or ""
version, parsed = find_first_valid(comment)
beta = getattr(parsed, "prerelease", None)
# Write GitHub Actions outputs if available (GITHUB_OUTPUT)
write_github_output(version, bool(beta))
# For CLI consumption print simple key=value lines (and a human line)
print(f"version={version or ''}")
print(f"is_beta={str(bool(beta)).lower()}")
print(f"Found version: {version} (beta: {bool(beta)})")
return 0
if __name__ == "__main__":
raise SystemExit(main())
================================================
FILE: .github/scripts/remove_beta.py
================================================
#!/usr/bin/env python3
"""
Remove the last beta item from an appcast XML file.
Usage: remove_beta.py path/to/appcast.xml
This script mirrors the inline Python used previously in the workflow.
"""
import sys
import xml.etree.ElementTree as ET
from pathlib import Path
def remove_last_beta_item(appcast_path: Path) -> int:
if not appcast_path.exists():
print(f"Appcast file not found: {appcast_path}")
return 1
try:
tree = ET.parse(appcast_path)
root = tree.getroot()
channel = root.find('channel')
if channel is None:
print('No channel found in appcast')
return 0
items = channel.findall('item')
removed = False
for item in reversed(items):
enclosure = item.find('enclosure')
if enclosure is not None:
version = enclosure.get('sparkle:version', '')
if 'beta' in version.lower():
channel.remove(item)
removed = True
break
if removed:
tree.write(appcast_path, encoding='utf-8', xml_declaration=True)
print('Removed beta item from appcast')
else:
print('No beta item found in appcast')
return 0
except Exception as e:
print(f'Error processing appcast: {e}')
return 2
if __name__ == '__main__':
if len(sys.argv) < 2:
print('Usage: remove_beta.py path/to/appcast.xml')
sys.exit(1)
path = Path(sys.argv[1])
sys.exit(remove_last_beta_item(path))
================================================
FILE: .github/workflows/build_reusable.yml
================================================
name: "Reusable Build"
on:
workflow_call:
inputs:
head_ref:
required: true
type: string
version:
required: false
type: string
build_number:
required: false
type: string
xcode_version:
required: false
type: string
default: "16.4"
code_sign_identity:
required: false
type: string
default: "Apple Development"
secrets:
BUILD_CERTIFICATE_BASE64:
required: true
P12_PASSWORD:
required: true
KEYCHAIN_PASSWORD:
required: true
jobs:
build:
runs-on: macos-latest
permissions:
contents: write
env:
PROJECT_NAME: boringNotch
EXPORT_METHOD: development
VERSION_INPUT: ${{ inputs.version }}
BUILD_NUMBER_INPUT: ${{ inputs.build_number }}
DEVELOPMENT_TEAM: ${{ vars.DEVELOPMENT_TEAM_ID }}
CODE_SIGN_IDENTITY: ${{ inputs.code_sign_identity }}
XCODE_VERSION: ${{ inputs.xcode_version }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
ref: ${{ inputs.head_ref }}
- name: Resolve Swift packages
run: xcodebuild -resolvePackageDependencies -project ${{ env.PROJECT_NAME }}.xcodeproj
- name: Install Apple certificate
env:
BUILD_CERTIFICATE_BASE64: ${{ secrets.BUILD_CERTIFICATE_BASE64 }}
P12_PASSWORD: ${{ secrets.P12_PASSWORD }}
KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }}
run: |
CERT_PATH="$RUNNER_TEMP/build_certificate.p12"
KC="$RUNNER_TEMP/app-signing.keychain-db"
echo -n "$BUILD_CERTIFICATE_BASE64" | base64 --decode > "$CERT_PATH"
security create-keychain -p "$KEYCHAIN_PASSWORD" "$KC"
security set-keychain-settings -lut 21600 "$KC"
security unlock-keychain -p "$KEYCHAIN_PASSWORD" "$KC"
security import "$CERT_PATH" -P "$P12_PASSWORD" -A -t cert -f pkcs12 -k "$KC"
security list-keychain -d user -s "$KC"
- name: Select Xcode ${{ env.XCODE_VERSION }}
run: |
XCODE_PATH="/Applications/Xcode_${XCODE_VERSION}.app"
if [[ ! -d "$XCODE_PATH" ]]; then
echo "::error::Xcode ${XCODE_VERSION} not found at ${XCODE_PATH}"
echo "Available Xcode versions:"
ls -d /Applications/Xcode*.app 2>/dev/null || echo " (none found)"
exit 1
fi
sudo xcode-select -s "$XCODE_PATH"
xcodebuild -version
- name: Set version and build number
run: |
PBXPROJ="${{ env.PROJECT_NAME }}.xcodeproj/project.pbxproj"
VERSION="${{ env.VERSION_INPUT }}"
BUILD_NUMBER_INPUT="${{ env.BUILD_NUMBER_INPUT }}"
if [[ -z "$BUILD_NUMBER_INPUT" ]]; then
BUILD_NUMBER="$GITHUB_RUN_NUMBER"
else
BUILD_NUMBER="$BUILD_NUMBER_INPUT"
fi
if [[ -n "$VERSION" ]]; then
sed -i '' "s/MARKETING_VERSION = [^;]*/MARKETING_VERSION = ${VERSION}/g" "$PBXPROJ"
fi
sed -i '' "s/CURRENT_PROJECT_VERSION = [^;]*/CURRENT_PROJECT_VERSION = ${BUILD_NUMBER}/g" "$PBXPROJ"
- name: Commit version changes
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add "${{ env.PROJECT_NAME }}.xcodeproj/project.pbxproj"
VERSION="${{ env.VERSION_INPUT }}"
BUILD_NUMBER_INPUT="${{ env.BUILD_NUMBER_INPUT }}"
if [[ -z "$BUILD_NUMBER_INPUT" ]]; then
BUILD_NUMBER="$GITHUB_RUN_NUMBER"
else
BUILD_NUMBER="$BUILD_NUMBER_INPUT"
fi
if [[ -n "$VERSION" ]]; then
COMMIT_MSG="Set version to v${VERSION} (build ${BUILD_NUMBER})"
else
COMMIT_MSG="Set build number to ${BUILD_NUMBER}"
fi
git commit -m "$COMMIT_MSG" || true
git push origin "HEAD:${{ inputs.head_ref }}" || true
- name: Build and archive
run: |
xcodebuild clean archive \
-project ${{ env.PROJECT_NAME }}.xcodeproj \
-scheme ${{ env.PROJECT_NAME }} \
-archivePath ${{ env.PROJECT_NAME }} \
-destination "generic/platform=macOS" \
DEVELOPMENT_TEAM="$DEVELOPMENT_TEAM" \
CODE_SIGN_IDENTITY="$CODE_SIGN_IDENTITY" \
ONLY_ACTIVE_ARCH=NO \
-allowProvisioningUpdates
- name: Export app
run: |
cat > "$RUNNER_TEMP/export_options.plist" <<PLIST
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>method</key>
<string>${{ env.EXPORT_METHOD }}</string>
<key>signingStyle</key>
<string>automatic</string>
<key>teamID</key>
<string>${DEVELOPMENT_TEAM}</string>
</dict>
</plist>
PLIST
xcodebuild -exportArchive \
-archivePath "${{ env.PROJECT_NAME }}.xcarchive" \
-exportPath Release \
-exportOptionsPlist "$RUNNER_TEMP/export_options.plist"
- name: Verify generate_appcast exists
run: |
if [ ! -x Configuration/sparkle/generate_appcast ]; then
echo "::warning title=Missing generate_appcast::Configuration/sparkle/generate_appcast is not present or not executable; skipping appcast generation verification."
fi
- name: Create DMG
run: |
VENV_DIR="$RUNNER_TEMP/venv"
python3 -m venv "$VENV_DIR"
source "$VENV_DIR/bin/activate"
pip install --upgrade pip setuptools wheel "dmgbuild[badge_icons]"
chmod +x Configuration/dmg/create_dmg.sh
./Configuration/dmg/create_dmg.sh \
"Release/${{ env.PROJECT_NAME }}.app" \
"Release/${{ env.PROJECT_NAME }}.dmg" \
"${{ env.PROJECT_NAME }} ${{ env.VERSION_INPUT }}"
- name: Upload DMG
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f
with:
name: ${{ env.PROJECT_NAME }}.dmg
path: Release/${{ env.PROJECT_NAME }}.dmg
- name: Upload .app
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f
with:
name: ${{ env.PROJECT_NAME }}.app
path: Release/${{ env.PROJECT_NAME }}.app
================================================
FILE: .github/workflows/cicd.yml
================================================
name: Build for macOS
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
# https://stackoverflow.com/a/72408109/6942800
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
# Least-privilege: only needs to read code for building.
permissions:
contents: read
jobs:
build:
name: Build Boring Notch
strategy:
matrix:
platform:
- macOS
xcode:
- ^16
scheme:
- boringNotch
runs-on: macos-latest
steps:
- name: Code Checkout
# TODO: pin to immutable SHA
uses: actions/checkout@v6.0.2
- # TODO: pin to immutable SHA
uses: mxcl/xcodebuild@v3
with:
xcode: ${{ matrix.xcode }}
platform: ${{ matrix.platform }}
scheme: ${{ matrix.scheme }}
action: build
verbosity: xcpretty
upload-logs: always
configuration: release
================================================
FILE: .github/workflows/manual_build.yml
================================================
name: "Manual Build"
on:
workflow_dispatch:
inputs:
head_ref:
description: 'Branch to build'
required: false
default: main
version:
description: 'Marketing version (optional)'
required: false
build_number:
description: 'Build number (optional)'
required: false
xcode_version:
description: 'Xcode version (optional)'
required: false
default: '16.4'
# Least-privilege: workflow_dispatch build only; no token access needed beyond artifacts.
permissions:
contents: write
jobs:
build:
name: Build and sign app
uses: ./.github/workflows/build_reusable.yml
with:
head_ref: ${{ github.event.inputs.head_ref || github.ref_name || 'main' }}
version: ${{ github.event.inputs.version || '' }}
build_number: ${{ github.event.inputs.build_number || '' }}
xcode_version: ${{ github.event.inputs.xcode_version || '16.4' }}
code_sign_identity: "Apple Development"
secrets:
BUILD_CERTIFICATE_BASE64: ${{ secrets.BUILD_CERTIFICATE_BASE64 }}
P12_PASSWORD: ${{ secrets.P12_PASSWORD }}
KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }}
================================================
FILE: .github/workflows/release.yml
================================================
name: "Deploy Boring Notch"
on:
issue_comment:
types: [created]
concurrency:
group: release-${{ github.event.issue.number || github.run_id }}
cancel-in-progress: true
env:
PROJECT_NAME: boringNotch
BETA_CHANNEL_NAME: beta
RELEASE_COMMAND: /release
CODE_SIGN_IDENTITY: "Apple Development"
XCODE_VERSION: "16.4"
permissions:
contents: read
pull-requests: write
jobs:
# helper job to test for the release command in the comment; env is safe to use here
check_release:
name: Check for release command
runs-on: ubuntu-latest
outputs:
is_release: ${{ steps.check.outputs.is_release }}
steps:
- id: check
run: |
if [[ "${{ github.event.comment.body }}" == *"${{ env.RELEASE_COMMAND }}"* ]]; then
echo "is_release=true" >> $GITHUB_OUTPUT
else
echo "is_release=false" >> $GITHUB_OUTPUT
fi
preparation:
name: Preparation
if: ${{ github.event.issue.pull_request && needs.check_release.outputs.is_release == 'true' }}
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
outputs:
is_beta: ${{ steps.extract_version.outputs.is_beta }}
version: ${{ steps.extract_version.outputs.version }}
build_number: ${{ steps.extract_version.outputs.build_number }}
title: ${{ steps.release_notes.outputs.title }}
release_notes: ${{ steps.release_notes.outputs.release_notes }}
release_notes_github: ${{ steps.release_notes.outputs.release_notes_github }}
head_ref: ${{ steps.pr_info.outputs.head_ref }}
base_ref: ${{ steps.pr_info.outputs.base_ref }}
steps:
- name: Validate permissions and PR state
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -euo pipefail
REPO="${{ github.repository }}"
COMMENTER="${{ github.event.comment.user.login }}"
PR_NUMBER="${{ github.event.issue.number }}"
# Acknowledge the command
gh api "repos/${REPO}/issues/comments/${{ github.event.comment.id }}/reactions" \
-f content=eyes --silent
# Require admin permission
PERM=$(gh api "repos/${REPO}/collaborators/${COMMENTER}/permission" --jq '.permission')
if [[ "$PERM" != "admin" ]]; then
echo "::error::${COMMENTER} is not an admin (permission: ${PERM})"
exit 1
fi
# Require mergeable, non-draft PR
IS_DRAFT=$(gh api "repos/${REPO}/pulls/${PR_NUMBER}" --jq '.draft')
MERGEABLE=$(gh api "repos/${REPO}/pulls/${PR_NUMBER}" --jq '.mergeable')
if [[ "$IS_DRAFT" == "true" || "$MERGEABLE" != "true" ]]; then
echo "::error::PR #${PR_NUMBER} is not ready to merge (draft=${IS_DRAFT}, mergeable=${MERGEABLE})"
exit 1
fi
- name: Get PR branch info
id: pr_info
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -euo pipefail
PR_DATA=$(gh api "repos/${{ github.repository }}/pulls/${{ github.event.issue.number }}" \
--jq '{head_ref: .head.ref, base_ref: .base.ref}')
echo "head_ref=$(echo "$PR_DATA" | jq -r '.head_ref')" >> "$GITHUB_OUTPUT"
echo "base_ref=$(echo "$PR_DATA" | jq -r '.base_ref')" >> "$GITHUB_OUTPUT"
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
ref: ${{ steps.pr_info.outputs.head_ref }}
- name: Ensure scripts directory exists
env:
BASE_REF: ${{ steps.pr_info.outputs.base_ref }}
run: |
if [ ! -f ".github/scripts/extract_version.py" ]; then
echo "Script not found in PR branch, fetching from base branch"
git fetch origin "$BASE_REF"
git checkout "origin/$BASE_REF" -- .github/scripts/
fi
- name: Extract version from comment
id: extract_version
env:
COMMENT: ${{ github.event.comment.body }}
run: |
set -euo pipefail
python3 -m pip install --upgrade --no-cache-dir semver
export projname="${{ env.PROJECT_NAME }}"
OUTPUT=$(python3 .github/scripts/extract_version.py -c "$COMMENT")
VERSION=$(awk -F= '/^version=/{print $2; exit}' <<<"$OUTPUT")
IS_BETA=$(awk -F= '/^is_beta=/{print $2; exit}' <<<"$OUTPUT")
BUILD_NUMBER="${GITHUB_RUN_NUMBER}"
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
echo "is_beta=$IS_BETA" >> "$GITHUB_OUTPUT"
echo "build_number=$BUILD_NUMBER" >> "$GITHUB_OUTPUT"
echo "Version: $VERSION | Beta: $IS_BETA | Build: $BUILD_NUMBER"
- name: Generate release notes from PR
id: release_notes
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -euo pipefail
PR_NUMBER="${{ github.event.issue.number }}"
REPO="${{ github.repository }}"
TITLE=$(gh api "repos/${REPO}/pulls/${PR_NUMBER}" --jq '.title // "Release"')
BODY=$(gh api "repos/${REPO}/pulls/${PR_NUMBER}" --jq '.body // "- No release notes provided"')
# Strip H1 headings for GitHub release notes
BODY_GITHUB=$(printf '%s' "$BODY" | sed '/^# /d' | perl -pe 's#<h1[^>]*>.*?</h1>##gi')
{
echo "title=${TITLE}"
echo "release_notes<<RELEASE_NOTES_DELIM"
echo "$BODY"
echo "RELEASE_NOTES_DELIM"
echo "release_notes_github<<RELEASE_NOTES_GH_DELIM"
echo "$BODY_GITHUB"
echo "RELEASE_NOTES_GH_DELIM"
} >> "$GITHUB_OUTPUT"
- name: Check version not already released
env:
VERSION: ${{ steps.extract_version.outputs.version }}
run: |
git fetch --tags
if git rev-parse -q --verify "refs/tags/v${VERSION}" >/dev/null; then
echo "::error::Version v${VERSION} already exists as a tag"
exit 1
fi
- name: Sync branch (stable releases only)
if: steps.extract_version.outputs.is_beta == 'false'
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
BASE_REF: ${{ steps.pr_info.outputs.base_ref }}
HEAD_REF: ${{ steps.pr_info.outputs.head_ref }}
run: |
set -euo pipefail
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git config --global credential.https://github.com.helper \
'!f() { echo "username=x-access-token"; printf "password=%s\n" "${GITHUB_TOKEN}"; }; f'
git fetch origin "$BASE_REF"
git checkout "$HEAD_REF"
git merge --no-ff "origin/$BASE_REF" -m "Sync branch before release"
git push origin "$HEAD_REF"
build:
name: Build and sign
needs: preparation
permissions:
contents: write
uses: ./.github/workflows/build_reusable.yml
with:
head_ref: ${{ needs.preparation.outputs.head_ref }}
version: ${{ needs.preparation.outputs.version }}
build_number: ${{ needs.preparation.outputs.build_number }}
xcode_version: ${{ needs.preparation.outputs.xcode_version }}
code_sign_identity: ${{ needs.preparation.outputs.code_sign_identity }}
secrets:
BUILD_CERTIFICATE_BASE64: ${{ secrets.BUILD_CERTIFICATE_BASE64 }}
P12_PASSWORD: ${{ secrets.P12_PASSWORD }}
KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }}
publish:
name: Publish release
needs: [preparation, build]
runs-on: macos-latest
permissions:
contents: write
env:
HEAD_REF: ${{ needs.preparation.outputs.head_ref }}
VERSION: ${{ needs.preparation.outputs.version }}
IS_BETA: ${{ needs.preparation.outputs.is_beta }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
ref: ${{ env.HEAD_REF }}
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: ${{ env.PROJECT_NAME }}.dmg
path: Release
- name: Create embedded release notes
env:
RELEASE_NOTES: ${{ needs.preparation.outputs.release_notes }}
run: printf '%s' "$RELEASE_NOTES" > Release/boringNotch.html
- name: Generate signed appcast
env:
SPARKLE_PRIVATE_KEY: ${{ secrets.PRIVATE_SPARKLE_KEY }}
run: |
set -euo pipefail
test -x Configuration/sparkle/generate_appcast || {
echo "::error::Configuration/sparkle/generate_appcast missing or not executable"; exit 1;
}
CHANNEL_ARGS=()
if [[ "${IS_BETA}" == "true" ]]; then
CHANNEL_ARGS=(--channel "${{ env.BETA_CHANNEL_NAME }}")
fi
printf '%s' "$SPARKLE_PRIVATE_KEY" | ./Configuration/sparkle/generate_appcast \
--ed-key-file - \
--link "https://github.com/TheBoredTeam/boring.notch/releases" \
--download-url-prefix "https://github.com/TheBoredTeam/boring.notch/releases/download/v${VERSION}/" \
--embed-release-notes \
"${CHANNEL_ARGS[@]}" \
-o updater/appcast.xml \
Release/
- name: Commit appcast
run: |
set -euo pipefail
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
if [[ "${IS_BETA}" == "false" ]]; then
git add updater/appcast.xml
git commit -m "Update version to v${VERSION} and appcast" || true
git push origin "HEAD:${HEAD_REF}" || true
else
# Save generated appcast, switch to main, apply and push
cp updater/appcast.xml "$RUNNER_TEMP/appcast.xml"
git fetch origin main
git checkout main
cp "$RUNNER_TEMP/appcast.xml" updater/appcast.xml
git add updater/appcast.xml
git commit -m "Update appcast with beta release for v${VERSION}" || true
git push origin main
fi
- name: Create GitHub release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TITLE: ${{ needs.preparation.outputs.title }}
NOTES: ${{ needs.preparation.outputs.release_notes_github }}
run: |
RELEASE_FLAGS=()
if [[ "${IS_BETA}" == "true" ]]; then
RELEASE_FLAGS=(--prerelease)
fi
gh release create "v${VERSION}" Release/boringNotch.dmg \
--title "v${VERSION} - ${TITLE}" \
--notes "$NOTES" \
"${RELEASE_FLAGS[@]}"
upgrade-brew:
name: Update Homebrew cask
needs: [preparation, publish]
runs-on: ubuntu-latest
env:
VERSION: ${{ needs.preparation.outputs.version }}
IS_BETA: ${{ needs.preparation.outputs.is_beta }}
steps:
- name: Generate cask files
run: |
set -euo pipefail
DMG_URL="https://github.com/TheBoredTeam/boring.notch/releases/download/v${VERSION}/boringNotch.dmg"
# Retry SHA calculation (release may need a moment to propagate)
for attempt in 1 2 3; do
if SHA256=$(curl -sL --fail "$DMG_URL" | shasum -a 256 | cut -d' ' -f1); then break; fi
echo "Attempt $attempt failed, retrying in 10s..."; sleep 10
done
[[ -n "${SHA256:-}" ]] || { echo "::error::Failed to download DMG for SHA256"; exit 1; }
write_cask() {
local CASK_NAME="$1" DISPLAY_NAME="$2" DESC="$3"
cat <<CASK
cask "${CASK_NAME}" do
version "${VERSION}"
sha256 "${SHA256}"
url "${DMG_URL}"
name "${DISPLAY_NAME}"
desc "${DESC}"
homepage "https://github.com/TheBoredTeam/boring.notch"
livecheck do
url :url
strategy :github_latest
end
auto_updates true
depends_on macos: ">= :sonoma"
app "boringNotch.app"
postflight do
app_path = appdir/"boringNotch.app"
next unless app_path.exist?
system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", app_path]
end
uninstall quit: "theboringteam.boringnotch"
zap trash: [
"~/Library/Application Scripts/theboringteam.boringnotch/",
"~/Library/Containers/theboringteam.boringnotch/",
]
end
CASK
}
write_cask "boring-notch@rc" "Boring Notch RC" \
"Not so boring notch That Rocks (Release Candidate)" > boring-notch@rc.rb
if [[ "${IS_BETA}" == "false" ]]; then
write_cask "boring-notch" "Boring Notch" \
"Not so boring notch That Rocks" > boring-notch.rb
fi
- name: Upload cask artifacts
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
with:
name: homebrew-cask-${{ env.VERSION }}
path: boring-notch*.rb
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
repository: TheBoredTeam/homebrew-boring-notch
token: ${{ secrets.HOMEBREW_TAP_TOKEN }}
path: homebrew-tap
- name: Update casks in tap
run: |
set -euo pipefail
cp boring-notch@rc.rb homebrew-tap/Casks/boring-notch@rc.rb
COMMIT_MSG="Update boring-notch@rc to v${VERSION}"
if [[ "${IS_BETA}" == "false" ]]; then
cp boring-notch.rb homebrew-tap/Casks/boring-notch.rb
COMMIT_MSG="Update boring-notch and boring-notch@rc to v${VERSION}"
fi
cd homebrew-tap
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add Casks/
if git diff --cached --quiet; then
echo "No changes to commit"
else
git commit -m "$COMMIT_MSG"
git push
fi
ending:
name: Finalize
if: ${{ always() && needs.preparation.result != 'skipped' && needs.check_release.outputs.is_release == 'true' }}
needs: [check_release, preparation, build, publish, upgrade-brew]
runs-on: ubuntu-latest
permissions:
contents: write
env:
ALL_RESULTS: ${{ join(needs.*.result, ',') }}
RELEASE_SUCCEEDED: ${{ !contains(join(needs.*.result, ','), 'failure') && !contains(join(needs.*.result, ','), 'cancelled') }}
steps:
- name: React to trigger comment
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
REPO="${{ github.repository }}"
COMMENT_ID="${{ github.event.comment.id }}"
if [[ "$ALL_RESULTS" != *"failure"* && "$ALL_RESULTS" != *"cancelled"* ]]; then
REACTION="rocket"
else
REACTION="confused"
fi
gh api "repos/${REPO}/issues/comments/${COMMENT_ID}/reactions" \
-f content="$REACTION" --silent
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
if: needs.preparation.outputs.is_beta == 'false' && env.RELEASE_SUCCEEDED == 'true'
with:
ref: ${{ needs.preparation.outputs.head_ref }}
fetch-depth: 0
- name: Merge PR (stable releases only)
if: needs.preparation.outputs.is_beta == 'false' && env.RELEASE_SUCCEEDED == 'true'
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
HEAD_REF: ${{ needs.preparation.outputs.head_ref }}
BASE_REF: ${{ needs.preparation.outputs.base_ref }}
VERSION: ${{ needs.preparation.outputs.version }}
run: |
set -euo pipefail
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git config --global credential.https://github.com.helper \
'!f() { echo "username=x-access-token"; printf "password=%s\n" "${GITHUB_TOKEN}"; }; f'
git fetch origin "$BASE_REF"
git checkout "$BASE_REF"
git merge --no-ff "origin/$HEAD_REF" -m "Release version v${VERSION}"
git push origin "$BASE_REF"
- name: Summary
env:
IS_BETA: ${{ needs.preparation.outputs.is_beta }}
VERSION: ${{ needs.preparation.outputs.version }}
BUILD_NUMBER: ${{ needs.preparation.outputs.build_number }}
shell: bash
run: |
if [[ "${IS_BETA}" == "true" ]]; then
BUILD_TYPE="beta"
else
BUILD_TYPE="stable"
fi
if [[ "${RELEASE_SUCCEEDED}" == "true" ]]; then
echo "✅ Released boringNotch v${VERSION} (${BUILD_TYPE} build ${BUILD_NUMBER})" >> "$GITHUB_STEP_SUMMARY"
echo "🍺 Homebrew cask updated" >> "$GITHUB_STEP_SUMMARY"
echo "📱 Sparkle appcast updated" >> "$GITHUB_STEP_SUMMARY"
else
echo "❌ Release failed${VERSION:+ for boringNotch v${VERSION}}" >> "$GITHUB_STEP_SUMMARY"
fi
================================================
FILE: .github/workflows/static.yml
================================================
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages
on:
# Runs on pushes targeting the default branch
push:
branches:
- main
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup Pages
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5
- name: Upload artifact
uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0
with:
# Upload entire repository
path: 'updater/'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4
================================================
FILE: .github/workflows/update-version-dropdown.yml
================================================
name: Update Version Dropdown in Issue Form
# Least-privilege: only needs to push the updated issue template file.
permissions:
contents: write
on:
push:
tags:
- '*'
workflow_dispatch: {}
release:
types:
- published
jobs:
update-dropdown:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
ref: ${{ github.event.repository.default_branch }}
fetch-depth: 0
persist-credentials: true
- name: Fetch tags
run: git fetch --tags
- name: Get latest 5 versions with placeholder
id: tags
run: |
TAGS=$(git tag --sort=-v:refname | head -n 5 | jq -R -s -c 'split("\n")[:-1]')
VERSIONS=$(echo '["Select a version"]' | jq -c --argjson tags "$TAGS" '. + $tags')
echo "versions=$VERSIONS" >> $GITHUB_OUTPUT
- name: Issue Forms Dropdown Options
uses: ShaMan123/gha-form-dropdown-options@124b08a39f06a6a4fcafdec501ecaca8db019db2 # v2.1.0
with:
form: .github/ISSUE_TEMPLATE/1-bug-report-form.yml
dropdown: version
options: ${{ steps.tags.outputs.versions }}
- name: Commit changes
run: |
git config user.name "GitHub Actions Bot"
git config user.email "actions@github.com"
if git diff --quiet; then
echo "No changes to commit."
else
git add .github/ISSUE_TEMPLATE/1-bug-report-form.yml
git commit -m "Update issue form version dropdown with placeholder and latest tags"
git push
fi
================================================
FILE: .gitignore
================================================
# Xcode
*.xcuserstate
*.xcuserdata
*.xcscheme
*.xcuserdatad
*.pbxuser
*.xccheckout
*.xcscheme
*.xcplayground
*.xcuserdatad
*.xctest
*.xcuserdata
*.xcodeproj/xcshareddata/WorkspaceSettings.xcsettings
# CocoaPods
Pods/
podfile.lock
# Carthage
Carthage/Build/
# Swift Package Manager
.swiftpm/
.build/
# Derived data
DerivedData/
# Build output
build/
*.app
*.dSYM
# Temporary files
*.swp
*.swo
*.tmp
*.log
# Other
*.DS_Store
*.vscode/
*.idea/
# User-specific files
*.xcuserdatad/
*.xcscheme
*.xcodeproj/xcuserdata
*.xcodeproj/project.xcuserdata
# Build artifacts
*.ipa
*.xcarchive
*.dSYM
================================================
FILE: BoringNotchXPCHelper/BoringNotchXPCHelper.entitlements
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<false/>
</dict>
</plist>
================================================
FILE: BoringNotchXPCHelper/BoringNotchXPCHelper.swift
================================================
//
// BoringNotchXPCHelper.swift
// BoringNotchXPCHelper
//
// Created by Alexander on 2025-11-16.
//
import Foundation
import ApplicationServices
import IOKit
import CoreGraphics
class BoringNotchXPCHelper: NSObject, BoringNotchXPCHelperProtocol {
@objc func isAccessibilityAuthorized(with reply: @escaping (Bool) -> Void) {
reply(AXIsProcessTrusted())
}
@objc func requestAccessibilityAuthorization() {
let options = [kAXTrustedCheckOptionPrompt.takeUnretainedValue() as String: true] as CFDictionary
AXIsProcessTrustedWithOptions(options)
}
@objc func ensureAccessibilityAuthorization(_ promptIfNeeded: Bool, with reply: @escaping (Bool) -> Void) {
if AXIsProcessTrusted() {
reply(true)
return
}
if promptIfNeeded {
requestAccessibilityAuthorization()
}
DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
reply(AXIsProcessTrusted())
}
}
private class KeyboardBrightnessClient {
private static let keyboardID: UInt64 = 1
private var clientInstance: NSObject?
private let getSelector = NSSelectorFromString("brightnessForKeyboard:")
private let setSelector = NSSelectorFromString("setBrightness:forKeyboard:")
init() {
var loaded = false
let bundlePaths = [
"/System/Library/PrivateFrameworks/CoreBrightness.framework",
"/System/Library/PrivateFrameworks/CoreBrightness.framework/CoreBrightness"
]
for path in bundlePaths where !loaded {
if let bundle = Bundle(path: path) {
loaded = bundle.load()
}
}
if loaded, let cls = NSClassFromString("KeyboardBrightnessClient") as? NSObject.Type {
clientInstance = cls.init()
}
}
var isAvailable: Bool { clientInstance != nil }
func currentBrightness() -> Float? {
guard let clientInstance,
let fn: BrightnessGetter = methodIMP(on: clientInstance, selector: getSelector, as: BrightnessGetter.self)
else { return nil }
return fn(clientInstance, getSelector, Self.keyboardID)
}
func setBrightness(_ value: Float) -> Bool {
guard let clientInstance,
let fn: BrightnessSetter = methodIMP(on: clientInstance, selector: setSelector, as: BrightnessSetter.self)
else { return false }
return fn(clientInstance, setSelector, value, Self.keyboardID).boolValue
}
private typealias BrightnessGetter = @convention(c) (NSObject, Selector, UInt64) -> Float
private typealias BrightnessSetter = @convention(c) (NSObject, Selector, Float, UInt64) -> ObjCBool
private func methodIMP<T>(on object: NSObject, selector: Selector, as type: T.Type) -> T? {
guard let cls = object_getClass(object),
let method = class_getInstanceMethod(cls, selector)
else { return nil }
let imp = method_getImplementation(method)
return unsafeBitCast(imp, to: type)
}
}
private static let keyboardClient = KeyboardBrightnessClient()
@objc func isKeyboardBrightnessAvailable(with reply: @escaping (Bool) -> Void) {
reply(Self.keyboardClient.isAvailable)
}
@objc func currentKeyboardBrightness(with reply: @escaping (NSNumber?) -> Void) {
reply(Self.keyboardClient.currentBrightness().map { NSNumber(value: $0) })
}
@objc func setKeyboardBrightness(_ value: Float, with reply: @escaping (Bool) -> Void) {
reply(Self.keyboardClient.setBrightness(value))
}
// MARK: - Screen Brightness (moved from client app into helper)
@objc func isScreenBrightnessAvailable(with reply: @escaping (Bool) -> Void) {
var b: Float = 0
reply(displayServicesGetBrightness(displayID: CGMainDisplayID(), out: &b) || ioServiceFor(displayID: CGMainDisplayID()) != nil)
}
@objc func currentScreenBrightness(with reply: @escaping (NSNumber?) -> Void) {
var b: Float = 0
if displayServicesGetBrightness(displayID: CGMainDisplayID(), out: &b) {
reply(NSNumber(value: b))
return
}
if let io = ioServiceFor(displayID: CGMainDisplayID()) {
var level: Float = 0
if IODisplayGetFloatParameter(io, 0, kIODisplayBrightnessKey as CFString, &level) == kIOReturnSuccess {
IOObjectRelease(io)
reply(NSNumber(value: level))
return
}
IOObjectRelease(io)
}
reply(nil)
}
@objc func setScreenBrightness(_ value: Float, with reply: @escaping (Bool) -> Void) {
let clamped = max(0, min(1, value))
if displayServicesSetBrightness(displayID: CGMainDisplayID(), value: clamped) {
reply(true)
return
}
if let io = ioServiceFor(displayID: CGMainDisplayID()) {
let ok = IODisplaySetFloatParameter(io, 0, kIODisplayBrightnessKey as CFString, clamped) == kIOReturnSuccess
IOObjectRelease(io)
reply(ok)
return
}
reply(false)
}
// MARK: - Private helpers for DisplayServices / IOKit access
private func displayServicesGetBrightness(displayID: CGDirectDisplayID, out: inout Float) -> Bool {
guard let sym = dlsym(DisplayServicesHandle.handle, "DisplayServicesGetBrightness") else { return false }
typealias Fn = @convention(c) (CGDirectDisplayID, UnsafeMutablePointer<Float>) -> Int32
let fn = unsafeBitCast(sym, to: Fn.self)
var tmp: Float = 0
let r = fn(displayID, &tmp)
if r == 0 { out = tmp; return true }
return false
}
private func displayServicesSetBrightness(displayID: CGDirectDisplayID, value: Float) -> Bool {
guard let sym = dlsym(DisplayServicesHandle.handle, "DisplayServicesSetBrightness") else { return false }
typealias Fn = @convention(c) (CGDirectDisplayID, Float) -> Int32
let fn = unsafeBitCast(sym, to: Fn.self)
return fn(displayID, value) == 0
}
private func ioServiceFor(displayID: CGDirectDisplayID) -> io_service_t? {
var iterator: io_iterator_t = 0
guard IOServiceGetMatchingServices(kIOMainPortDefault, IOServiceMatching("IODisplayConnect"), &iterator) == kIOReturnSuccess else { return nil }
defer { IOObjectRelease(iterator) }
while case let service = IOIteratorNext(iterator), service != 0 {
let info = IODisplayCreateInfoDictionary(service, 0).takeRetainedValue() as NSDictionary
if let vendorID = info[kDisplayVendorID] as? UInt32,
let productID = info[kDisplayProductID] as? UInt32,
vendorID == CGDisplayVendorNumber(displayID),
productID == CGDisplayModelNumber(displayID) {
return service
}
IOObjectRelease(service)
}
return nil
}
// MARK: - Helper handle for private framework
private enum DisplayServicesHandle {
static let handle: UnsafeMutableRawPointer? = {
let paths = [
"/System/Library/PrivateFrameworks/DisplayServices.framework/DisplayServices",
"/System/Library/PrivateFrameworks/DisplayServices.framework/Versions/Current/DisplayServices"
]
for p in paths {
if let h = dlopen(p, RTLD_LAZY) { return h }
}
return nil
}()
}
}
================================================
FILE: BoringNotchXPCHelper/BoringNotchXPCHelperProtocol.swift
================================================
//
// BoringNotchXPCHelperProtocol.swift
// BoringNotchXPCHelper
//
// Created by Alexander on 2025-11-16.
//
import Foundation
/// The protocol that this service will vend as its API. This protocol will also need to be visible to the process hosting the service.
@objc protocol BoringNotchXPCHelperProtocol {
func isAccessibilityAuthorized(with reply: @escaping (Bool) -> Void)
func requestAccessibilityAuthorization()
func ensureAccessibilityAuthorization(_ promptIfNeeded: Bool, with reply: @escaping (Bool) -> Void)
// Keyboard backlight / CoreBrightness access (performed by the helper)
func isKeyboardBrightnessAvailable(with reply: @escaping (Bool) -> Void)
func currentKeyboardBrightness(with reply: @escaping (NSNumber?) -> Void)
func setKeyboardBrightness(_ value: Float, with reply: @escaping (Bool) -> Void)
// Screen brightness access (performed by the helper)
func isScreenBrightnessAvailable(with reply: @escaping (Bool) -> Void)
func currentScreenBrightness(with reply: @escaping (NSNumber?) -> Void)
func setScreenBrightness(_ value: Float, with reply: @escaping (Bool) -> Void)
}
/*
To use the service from an application or other process, use NSXPCConnection to establish a connection to the service by doing something like this:
connectionToService = NSXPCConnection(serviceName: "theboringteam.boringnotch.BoringNotchXPCHelper")
connectionToService.remoteObjectInterface = NSXPCInterface(with: (any BoringNotchXPCHelperProtocol).self)
connectionToService.resume()
Once you have a connection to the service, you can use it like this:
if let proxy = connectionToService.remoteObjectProxy as? BoringNotchXPCHelperProtocol {
proxy.performCalculation(firstNumber: 23, secondNumber: 19) { result in
NSLog("Result of calculation is: \(result)")
}
}
And, when you are finished with the service, clean up the connection like this:
connectionToService.invalidate()
*/
================================================
FILE: BoringNotchXPCHelper/Info.plist
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>XPCService</key>
<dict>
<key>ServiceType</key>
<string>Application</string>
</dict>
</dict>
</plist>
================================================
FILE: BoringNotchXPCHelper/main.swift
================================================
//
// main.swift
// BoringNotchXPCHelper
//
// Created by Alexander on 2025-11-16.
//
import Foundation
class ServiceDelegate: NSObject, NSXPCListenerDelegate {
/// This method is where the NSXPCListener configures, accepts, and resumes a new incoming NSXPCConnection.
func listener(_ listener: NSXPCListener, shouldAcceptNewConnection newConnection: NSXPCConnection) -> Bool {
// Configure the connection.
// First, set the interface that the exported object implements.
newConnection.exportedInterface = NSXPCInterface(with: (any BoringNotchXPCHelperProtocol).self)
// Next, set the object that the connection exports. All messages sent on the connection to this service will be sent to the exported object to handle. The connection retains the exported object.
let exportedObject = BoringNotchXPCHelper()
newConnection.exportedObject = exportedObject
// Resuming the connection allows the system to deliver more incoming messages.
newConnection.resume()
// Returning true from this method tells the system that you have accepted this connection. If you want to reject the connection for some reason, call invalidate() on the connection and return false.
return true
}
}
// Create the delegate for the service.
let delegate = ServiceDelegate()
// Set up the one NSXPCListener for this service. It will handle all incoming connections.
let listener = NSXPCListener.service()
listener.delegate = delegate
// Resuming the serviceListener starts this service. This method does not return.
listener.resume()
================================================
FILE: CONTRIBUTING.md
================================================
# Contributing
Thank you for taking the time to contribute! ❤️
These guidelines help streamline the contribution process for everyone involved. By following them, you'll make it easier for maintainers to review your work and collaborate with you effectively.
You can contribute in many ways: writing code, improving documentation, reporting bugs, requesting features, or creating tutorials and blog posts. Every contribution, large or small, helps make Boring Notch better.
## Table of Contents
- [Localizations](#localizations)
- [Contributing Code](#contributing-code)
- [Before You Start](#before-you-start)
- [Setting Up Your Environment](#setting-up-your-environment)
- [Making Changes](#making-changes)
- [Pull Requests](#pull-requests)
<!-- - [Code Style Guidelines](#code-style-guidelines) -->
- [Reporting Bugs](#reporting-bugs)
- [Feature Requests](#feature-requests)
- [Getting Help](#getting-help)
## Localizations
Please submit all translations to [Crowdin](https://crowdin.com/project/boring-notch). New strings added to the `dev` branch from code changes will sync automatically to Crowdin, and Crowdin will automatically open a new PR with translations to allow us to integrate them.
## Contributing Code
### Before You Start
- **Check existing issues**: Before creating a new issue or starting work, search existing issues to avoid duplicates.
- **Discuss major changes**: For significant features or major changes, please open an issue first to discuss your approach with maintainers and the community.
<!-- - **Review the code style**: Familiarize yourself with our code style guidelines below to ensure consistency. -->
> [!IMPORTANT]
> All code contributions must be based on the `dev` branch, not `main`. Documentation changes should be based on `main` instead.
### Setting Up Your Environment
1. **Fork the repository**: Click the "Fork" button at the top of the repository page to create your own copy.
2. **Clone your fork**:
```bash
git clone https://github.com/{your-username}/boring.notch.git
cd boring.notch
```
Replace `{your-username}` with your GitHub username.
3. **Switch to the `dev` branch**:
```bash
git checkout dev
```
All code contributions must be based on the `dev` branch, not `main`. Documentation changes should be based on `main` instead.
5. **Create a new feature branch**:
```bash
git checkout -b feature/{your-feature-name}
```
Replace `{your-feature-name}` with a descriptive name. Use lowercase letters, numbers, and hyphens only (e.g., `feature/add-dark-mode` or `fix/notification-crash`).
### Making Changes
1. **Make your changes**: Implement your feature or bug fix. Write clean, well-documented code <!-- following the project's style guidelines. -->
2. **Test your changes**: Ensure your changes work as expected and don't break existing functionality.
3. **Commit your changes**:
```bash
git add .
git commit -m "Add descriptive commit message"
```
Write clear, concise commit messages that explain what your changes do and why.
4. **Keep your branch up to date**:
Regularly sync your branch with the latest changes from the `dev` branch to avoid conflicts.
5. **Push to your fork**:
```bash
git push origin feature/{your-feature-name}
```
### Pull Requests
1. **Create a pull request**: Go to the original repository and click "New Pull Request." Select your feature branch and set the base branch to `dev`.
2. **Write a detailed description**: Your PR should include:
- A clear title summarizing the changes
- A detailed description of what was changed and why
- Reference to any related issues (e.g., "Fixes #123" or "Relates to #456")
- Screenshots or screen recordings for UI changes
3. **Respond to feedback**: Maintainers may request changes.
4. **Be patient**: Reviews take time. Maintainers will get to your PR as soon as they can.
<!-- ## Code Style Guidelines
- Follow the existing code style and conventions used in the project
- Write clear, self-documenting code with meaningful variable and function names
- Add comments for complex logic or non-obvious implementations
- Ensure your code is properly formatted before committing
- Remove any debugging code, console logs, or commented-out code before submitting -->
## Reporting Bugs
When reporting bugs, please include:
- A clear, descriptive title
- Steps to reproduce the issue
- Expected behavior vs. actual behavior
- Screenshots or error messages if applicable
- Your environment details (OS version, app version, etc.)
## Feature Requests
Feature requests are welcome! Please:
- Check if the feature has already been requested
- Clearly describe the feature and its use case
- Explain why this feature would be valuable to users
- Be open to discussion and alternative approaches
## Getting Help
If you need help or have questions:
- Check the project documentation
- Search existing issues for similar questions
- Open a new issue with the "question" label
- Join our [community Discord server](https://discord.com/servers/boring-notch-1269588937320566815)
---
Thank you for contributing to Boring Notch! Your efforts help make this project better for everyone. 🎉
================================================
FILE: Configuration/dmg/create_dmg.sh
================================================
#!/usr/bin/env bash
set -euo pipefail
# Minimal wrapper to create a DMG using dmgbuild.
# Usage: ./create_dmg.sh <app_path> <dmg_output> <volume_name>
APP_PATH="${1:?App path required}"
DMG_OUTPUT="${2:?DMG output path required}"
VOLUME_NAME="${3:?Volume name required}"
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
SETTINGS="$SCRIPT_DIR/dmgbuild_settings.py"
BACKGROUND_DIR="$SCRIPT_DIR/.background"
die() {
echo "Error: $*" >&2
exit 1
}
abs_path() {
python3 -c 'import os,sys; print(os.path.abspath(sys.argv[1]))' "$1"
}
ensure_dmgbuild_and_badge_support() {
if command -v dmgbuild >/dev/null 2>&1; then
return 0
fi
if ! command -v pip3 >/dev/null 2>&1; then
die "dmgbuild is not installed and pip3 is not available. Please install dmgbuild."
fi
echo "dmgbuild not found — installing via pip3 (user scope)..."
python3 -m pip install --user "dmgbuild[badge_icons]" || python3 -m pip install "dmgbuild[badge_icons]"
USER_BIN="$(python3 -c 'import site,sys; print(site.getuserbase() + "/bin")')"
export PATH="$USER_BIN:$PATH"
}
find_app_icns() {
local app="$1"
local info_plist="$app/Contents/Info.plist"
if [ ! -f "$info_plist" ]; then
return 1
fi
local icon_file=""
icon_file="$(/usr/libexec/PlistBuddy -c 'Print :CFBundleIconFile' "$info_plist" 2>/dev/null || true)"
if [ -z "$icon_file" ]; then
icon_file="$(/usr/libexec/PlistBuddy -c 'Print :CFBundleIconName' "$info_plist" 2>/dev/null || true)"
fi
if [ -n "$icon_file" ]; then
if [[ "$icon_file" != *.icns ]]; then
icon_file="$icon_file.icns"
fi
if [ -f "$app/Contents/Resources/$icon_file" ]; then
echo "$app/Contents/Resources/$icon_file"
return 0
fi
fi
# Fallback: any .icns inside the app bundle
local candidate
candidate="$(find "$app/Contents/Resources" -maxdepth 1 -name '*.icns' -print -quit 2>/dev/null || true)"
if [ -n "$candidate" ] && [ -f "$candidate" ]; then
echo "$candidate"
return 0
fi
return 1
}
if [ ! -f "$SETTINGS" ]; then
die "dmgbuild settings not found: $SETTINGS"
fi
ensure_dmgbuild_and_badge_support
export DMG_APP_PATH="$(abs_path "$APP_PATH")"
export DMG_VOLUME_NAME="$VOLUME_NAME"
BACKGROUND_TIFF="$BACKGROUND_DIR/background.tiff"
export DMG_BACKGROUND="$(abs_path "$BACKGROUND_TIFF")"
# Badge icon: use the app's icon for badging the volume icon
if DMG_ICON_ICNS="$(find_app_icns "$DMG_APP_PATH" 2>/dev/null)"; then
export DMG_BADGE_ICON="$(abs_path "$DMG_ICON_ICNS")"
echo "Using badge icon for DMG volume."
else
echo "No app icon found, skipping badge."
fi
echo "Creating DMG via dmgbuild: app=$DMG_APP_PATH output=$DMG_OUTPUT volume=$DMG_VOLUME_NAME"
# Validate inputs early to give clearer errors for common typos
if [ ! -e "$DMG_APP_PATH" ]; then
echo "Error: App path not found: $DMG_APP_PATH" >&2
echo "Make sure you passed the correct .app path (e.g. Release/boringNotch.app)" >&2
exit 2
fi
if [ ! -d "$DMG_APP_PATH" ]; then
echo "Error: App path exists but is not a directory: $DMG_APP_PATH" >&2
exit 3
fi
dmgbuild -s "$SETTINGS" "$DMG_VOLUME_NAME" "$DMG_OUTPUT"
exit $?
================================================
FILE: Configuration/dmg/dmgbuild_settings.py
================================================
import os
# dmgbuild settings file. This is read by the `dmgbuild` CLI (or Python API).
# It uses environment variables exported by the shell wrapper script:
# - DMG_APP_PATH: path to the .app bundle to put in the DMG
# - DMG_VOLUME_NAME: volume name to display when the DMG is mounted
# - DMG_BACKGROUND: absolute path to the background image to use
APP_PATH = os.environ.get('DMG_APP_PATH')
VOLUME_NAME = os.environ.get('DMG_VOLUME_NAME', 'boringNotch')
BACKGROUND = os.environ.get('DMG_BACKGROUND', '')
BADGE_ICON = os.environ.get('DMG_BADGE_ICON', '')
# If DMG_BACKGROUND not provided, default to the hiDPI TIFF in .background.
if not BACKGROUND:
base = os.path.join(os.path.dirname(__file__), '.background', 'background.tiff')
# Basic DMG metadata
volume_name = VOLUME_NAME
format = 'UDZO'
compression_level = 9
# Files and symlinks to include in the DMG
files = [APP_PATH] if APP_PATH else []
symlinks = {'Applications': '/Applications'}
# Background image path (dmgbuild will copy this file into the DMG's .background)
background = BACKGROUND
# Window rectangle: ((left, top), (right, bottom))
window_rect = ((0, 0), (660, 400))
# Icon size (points)
icon_size = 128
# Icon locations: map filename (or bundle name) -> (x, y) in window coords
app_basename = os.path.basename(APP_PATH) if APP_PATH else 'boringNotch.app'
icon_locations = {
app_basename: (150, 180),
'Applications': (510, 180),
}
# Misc Finder options
show_statusbar = False
show_tabview = False
show_toolbar = False
# Optionally set a custom icon for the DMG volume (leave empty to skip)
if BADGE_ICON and os.path.exists(BADGE_ICON):
badge_icon = BADGE_ICON
================================================
FILE: LICENSE
================================================
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<https://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<https://www.gnu.org/licenses/why-not-lgpl.html>.
================================================
FILE: README.md
================================================
<h1 align="center">
<br>
<a href="http://theboring.name"><img src="https://framerusercontent.com/images/RFK4vs0kn8pRMuOO58JeyoemXA.png?scale-down-to=256" alt="Boring Notch" width="150"></a>
<br>
Boring Notch
<br>
</h1>
<p align="center">
<a title="Crowdin" target="_blank" href="https://crowdin.com/project/boring-notch"><img src="https://badges.crowdin.net/boring-notch/localized.svg"></a>
<img src="https://github.com/TheBoredTeam/boring.notch/actions/workflows/cicd.yml/badge.svg" alt="TheBoringNotch Build & Test" style="margin-right: 10px;" />
<a href="https://discord.gg/c8JXA7qrPm">
<img src="https://dcbadge.limes.pink/api/server/https://discord.gg/c8JXA7qrPm?style=flat" alt="Discord Badge" />
</a>
<a href="https://www.ko-fi.com/alexander5015">
<img src="https://srv-cdn.himpfen.io/badges/kofi/kofi-flat.svg" alt="Ko-Fi" />
</a>
</p>
<!--Welcome to **Boring.Notch**, the coolest way to make your MacBook's notch the star of the show! Forget about those boring status bars—our notch turns into a dynamic music control center, complete with a snazzy visualizer and all the music controls you need. It's like having a mini concert right at the top of your screen! -->
Say hello to **Boring Notch**, the coolest way to make your MacBook’s notch the star of the show! Say goodbye to boring status bars: with Boring Notch, your notch transforms into a dynamic music control center, complete with a vibrant visualizer and all the essential music controls you need. But that’s just the start! Boring Notch also offers calendar integration, a handy file shelf with AirDrop support, a complete MacOS HUD replacement and more!
<p align="center">
<img src="https://github.com/user-attachments/assets/2d5f69c1-6e7b-4bc2-a6f1-bb9e27cf88a8" alt="Demo GIF" />
</p>
<!--https://github.com/user-attachments/assets/19b87973-4b3a-4853-b532-7e82d1d6b040-->
---
<!--## Table of Contents
- [Installation](#installation)
- [Usage](#usage)
- [Roadmap](#-roadmap)
- [Building from Source](#building-from-source)
- [Contributing](#-contributing)
- [Join our Discord Server](#join-our-discord-server)
- [Star History](#star-history)
- [Buy us a coffee!](#buy-us-a-coffee)
- [Acknowledgments](#-acknowledgments)-->
## Installation
**System Requirements:**
- macOS **14 Sonoma** or later
- Apple Silicon or Intel Mac
---
### Option 1: Download and Install Manually
<a href="https://github.com/TheBoredTeam/boring.notch/releases/latest/download/boringNotch.dmg" target="_self"><img width="200" src="https://github.com/user-attachments/assets/e3179be1-8416-4b8a-b417-743e1ecc67d6" alt="Download for macOS" /></a>
Once downloaded, open the `.dmg` and move **Boring Notch** to your `/Applications` folder.
> [!IMPORTANT]
> We don't have an Apple Developer account (yet 👀), so macOS will warn you that Boring Notch is from an unidentified developer on first launch. This is expected behavior.
>
> You'll need to bypass this before the app will open. You only need to do this once. Use one of the methods below.
---
#### Recommended: Terminal (Always Works)
This is the fastest and simplest method. It requires just one command and works reliably for all users, unlike System Settings, which occasionally doesn't.
After moving Boring Notch to your Applications folder, run:
```bash
xattr -dr com.apple.quarantine /Applications/boringNotch.app
```
Then open the app normally.
---
#### Alternative: System Settings
> [!NOTE]
> This method doesn't work for all users. If this doesn't work, use the Terminal method above.
1. Try to open the app — you'll see a security warning.
2. Click **OK** to dismiss it.
3. Open **System Settings** > **Privacy & Security**.
4. Scroll to the bottom and click **Open Anyway** next to the Boring Notch warning.
5. Confirm if prompted.
---
### Option 2: Install via Homebrew
You can also install using [Homebrew](https://brew.sh). The Homebrew installation automatically bypasses the macOS security warning described above.
```bash
brew install --cask TheBoredTeam/boring-notch/boring-notch
```
## Usage
- Launch the app, and voilà—your notch is now the coolest part of your screen.
- Hover over the notch to see it expand and reveal all its secrets.
- Use the controls to manage your music like a rockstar.
- Click the star in your menu bar to customize your notch to your heart's content.
## 📋 Roadmap
- [x] Playback live activity 🎧
- [x] Calendar integration 📆
- [x] Reminders integration ☑️
- [x] Mirror 📷
- [x] Charging indicator and current percentage 🔋
- [x] Customizable gesture control 👆🏻
- [x] Shelf functionality with AirDrop 📚
- [x] Notch sizing customization, finetuning on different display sizes 🖥️
- [x] System HUD replacements (volume, brightness, backlight) 🎚️💡⌨️
- [ ] Bluetooth Live Activity (connect/disconnect for bluetooth devices)
- [ ] Weather integration ⛅️
- [ ] Customizable Layout options 🛠️
- [ ] Lock Screen Widgets 🔒
- [ ] Extension system 🧩
- [ ] Notifications (under consideration) 🔔
<!-- - [ ] Clipboard history manager 📌 `Extension` -->
<!-- - [ ] Download indicator of different browsers (Safari, Chromium browsers, Firefox) 🌍 `Extension`-->
<!-- - [ ] Customizable function buttons 🎛️ -->
<!-- - [ ] App switcher 🪄 -->
<!-- ## 🧩 Extensions
> [!NOTE]
> We’re hard at work on some awesome extensions! Stay tuned, and we’ll keep you updated as soon as they’re released. -->
## Building from Source
### Prerequisites
- **macOS 14 or later**: If you’re not on the latest macOS, we might need to send a search party.
- **Xcode 16 or later**: This is where the magic happens, so make sure it’s up-to-date.
### Installation
1. **Clone the Repository**:
```bash
git clone https://github.com/TheBoredTeam/boring.notch.git
cd boring.notch
```
2. **Open the Project in Xcode**:
```bash
open boringNotch.xcodeproj
```
3. **Build and Run**:
- Click the "Run" button or press `Cmd + R`. Watch the magic unfold!
## 🤝 Contributing
We’re all about good vibes and awesome contributions! Read [CONTRIBUTING.md](CONTRIBUTING.md) to learn how you can join the fun!
## Join our Discord Server
<a href="https://discord.gg/GvYcYpAKTu" target="_blank"><img src="https://iili.io/28m3GHv.png" alt="Join The Boring Server!" style="height: 60px !important;width: 217px !important;" ></a>
## Star History
<a href="https://www.star-history.com/#TheBoredTeam/boring.notch&Timeline">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=TheBoredTeam/boring.notch&type=Timeline&theme=dark" />
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=TheBoredTeam/boring.notch&type=Timeline" />
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=TheBoredTeam/boring.notch&type=Timeline" />
</picture>
</a>
## Support us on Ko-fi!
<!-- <a href="https://www.buymeacoffee.com/jfxh67wvfxq" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-red.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a> -->
<a href="https://www.ko-fi.com/alexander5015" target="_blank"><img src="https://github.com/user-attachments/assets//a76175ef-7e93-475a-8b67-4922ba5964c2" alt="Support us on Ko-fi" style="height: 70px !important;width: 346px !important;" ></a>
## 🎉 Acknowledgments
We would like to express our gratitude to the authors and maintainers of the open-source projects that made this possible.
## Notable Projects
- **[MediaRemoteAdapter](https://github.com/ungive/mediaremote-adapter)** – An open-source project that allowed us to use the Now Playing source in macOS 15.4+
- **[NotchDrop](https://github.com/Lakr233/NotchDrop)** – An open-source project that has been instrumental in developing the first version of the "Shelf" feature in Boring Notch.
For a full list of licenses and attributions, please see the [Third-Party Licenses](./THIRD_PARTY_LICENSES.md) file.
### Icon credits: [@maxtron95](https://github.com/maxtron95)
### Website credits: [@himanshhhhuv](https://github.com/himanshhhhuv)
- **SwiftUI**: For making us look like coding wizards.
- **You**: For being awesome and checking out **boring.notch**!
================================================
FILE: SECURITY.md
================================================
# Security Policy
## Reporting a Vulnerability
The Bored Team and community take security bugs in Boring Notch seriously. We appreciate your efforts to responsibly disclose your findings, and will make every effort to acknowledge your contributions.
To report a security issue, please use the GitHub Security Advisory ["Report a Vulnerability"](https://github.com/TheBoredTeam/boring.notch/security/advisories/new) tab.
The Bored Team will send a response indicating the next steps in handling your report. After the initial reply to your report, we will keep you informed of the progress towards a fix and full announcement, and may ask for additional information or guidance.
Report security bugs in third-party dependencies to the person or team maintaining the package or dependency.
================================================
FILE: THIRD_PARTY_LICENSES
================================================
-----------------------------------------------------------------------------
BSD 3-Clause License
applies to:
- MediaRemoteAdapter, Copyright (c) 2025, Jonas van den Berg and contributors
-----------------------------------------------------------------------------
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-----------------------------------------------------------------------------
The MIT License (MIT)
applies to:
- Calendr, Copyright (c) 2021 Carlos César Neves Enumo
- DynamicNotchKit, Copyright (c) 2025 Kai Azim
- NotchDrop Copyright (c) 2024 Lakr Aream
-----------------------------------------------------------------------------
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
-----------------------------------------------------------------------------
Mozilla Public License Version 2.0
applies to:
- Parrot, Copyright (c) 2018, Aditya Vaidyam and Contributors
-----------------------------------------------------------------------------
1. Definitions
--------------
1.1. "Contributor"
means each individual or legal entity that creates, contributes to
the creation of, or owns Covered Software.
1.2. "Contributor Version"
means the combination of the Contributions of others (if any) used
by a Contributor and that particular Contributor's Contribution.
1.3. "Contribution"
means Covered Software of a particular Contributor.
1.4. "Covered Software"
means Source Code Form to which the initial Contributor has attached
the notice in Exhibit A, the Executable Form of such Source Code
Form, and Modifications of such Source Code Form, in each case
including portions thereof.
1.5. "Incompatible With Secondary Licenses"
means
(a) that the initial Contributor has attached the notice described
in Exhibit B to the Covered Software; or
(b) that the Covered Software was made available under the terms of
version 1.1 or earlier of the License, but not also under the
terms of a Secondary License.
1.6. "Executable Form"
means any form of the work other than Source Code Form.
1.7. "Larger Work"
means a work that combines Covered Software with other material, in
a separate file or files, that is not Covered Software.
1.8. "License"
means this document.
1.9. "Licensable"
means having the right to grant, to the maximum extent possible,
whether at the time of the initial grant or subsequently, any and
all of the rights conveyed by this License.
1.10. "Modifications"
means any of the following:
(a) any file in Source Code Form that results from an addition to,
deletion from, or modification of the contents of Covered
Software; or
(b) any new file in Source Code Form that contains any Covered
Software.
1.11. "Patent Claims" of a Contributor
means any patent claim(s), including without limitation, method,
process, and apparatus claims, in any patent Licensable by such
Contributor that would be infringed, but for the grant of the
License, by the making, using, selling, offering for sale, having
made, import, or transfer of either its Contributions or its
Contributor Version.
1.12. "Secondary License"
means either the GNU General Public License, Version 2.0, the GNU
Lesser General Public License, Version 2.1, the GNU Affero General
Public License, Version 3.0, or any later versions of those
licenses.
1.13. "Source Code Form"
means the form of the work preferred for making modifications.
1.14. "You" (or "Your")
means an individual or a legal entity exercising rights under this
License. For legal entities, "You" includes any entity that
controls, is controlled by, or is under common control with You. For
purposes of this definition, "control" means (a) the power, direct
or indirect, to cause the direction or management of such entity,
whether by contract or otherwise, or (b) ownership of more than
fifty percent (50%) of the outstanding shares or beneficial
ownership of such entity.
2. License Grants and Conditions
--------------------------------
2.1. Grants
Each Contributor hereby grants You a world-wide, royalty-free,
non-exclusive license:
(a) under intellectual property rights (other than patent or trademark)
Licensable by such Contributor to use, reproduce, make available,
modify, display, perform, distribute, and otherwise exploit its
Contributions, either on an unmodified basis, with Modifications, or
as part of a Larger Work; and
(b) under Patent Claims of such Contributor to make, use, sell, offer
for sale, have made, import, and otherwise transfer either its
Contributions or its Contributor Version.
2.2. Effective Date
The licenses granted in Section 2.1 with respect to any Contribution
become effective for each Contribution on the date the Contributor first
distributes such Contribution.
2.3. Limitations on Grant Scope
The licenses granted in this Section 2 are the only rights granted under
this License. No additional rights or licenses will be implied from the
distribution or licensing of Covered Software under this License.
Notwithstanding Section 2.1(b) above, no patent license is granted by a
Contributor:
(a) for any code that a Contributor has removed from Covered Software;
or
(b) for infringements caused by: (i) Your and any other third party's
modifications of Covered Software, or (ii) the combination of its
Contributions with other software (except as part of its Contributor
Version); or
(c) under Patent Claims infringed by Covered Software in the absence of
its Contributions.
This License does not grant any rights in the trademarks, service marks,
or logos of any Contributor (except as may be necessary to comply with
the notice requirements in Section 3.4).
2.4. Subsequent Licenses
No Contributor makes additional grants as a result of Your choice to
distribute the Covered Software under a subsequent version of this
License (see Section 10.2) or under the terms of a Secondary License (if
permitted under the terms of Section 3.3).
2.5. Representation
Each Contributor represents that the Contributor believes its
Contributions are its original creation(s) or it has sufficient rights
to grant the rights to its Contributions conveyed by this License.
2.6. Fair Use
This License is not intended to limit any rights You have under
applicable copyright doctrines of fair use, fair dealing, or other
equivalents.
2.7. Conditions
Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
in Section 2.1.
3. Responsibilities
-------------------
3.1. Distribution of Source Form
All distribution of Covered Software in Source Code Form, including any
Modifications that You create or to which You contribute, must be under
the terms of this License. You must inform recipients that the Source
Code Form of the Covered Software is governed by the terms of this
License, and how they can obtain a copy of this License. You may not
attempt to alter or restrict the recipients' rights in the Source Code
Form.
3.2. Distribution of Executable Form
If You distribute Covered Software in Executable Form then:
(a) such Covered Software must also be made available in Source Code
Form, as described in Section 3.1, and You must inform recipients of
the Executable Form how they can obtain a copy of such Source Code
Form by reasonable means in a timely manner, at a charge no more
than the cost of distribution to the recipient; and
(b) You may distribute such Executable Form under the terms of this
License, or sublicense it under different terms, provided that the
license for the Executable Form does not attempt to limit or alter
the recipients' rights in the Source Code Form under this License.
3.3. Distribution of a Larger Work
You may create and distribute a Larger Work under terms of Your choice,
provided that You also comply with the requirements of this License for
the Covered Software. If the Larger Work is a combination of Covered
Software with a work governed by one or more Secondary Licenses, and the
Covered Software is not Incompatible With Secondary Licenses, this
License permits You to additionally distribute such Covered Software
under the terms of such Secondary License(s), so that the recipient of
the Larger Work may, at their option, further distribute the Covered
Software under the terms of either this License or such Secondary
License(s).
3.4. Notices
You may not remove or alter the substance of any license notices
(including copyright notices, patent notices, disclaimers of warranty,
or limitations of liability) contained within the Source Code Form of
the Covered Software, except that You may alter any license notices to
the extent required to remedy known factual inaccuracies.
3.5. Application of Additional Terms
You may choose to offer, and to charge a fee for, warranty, support,
indemnity or liability obligations to one or more recipients of Covered
Software. However, You may do so only on Your own behalf, and not on
behalf of any Contributor. You must make it absolutely clear that any
such warranty, support, indemnity, or liability obligation is offered by
You alone, and You hereby agree to indemnify every Contributor for any
liability incurred by such Contributor as a result of warranty, support,
indemnity or liability terms You offer. You may include additional
disclaimers of warranty and limitations of liability specific to any
jurisdiction.
4. Inability to Comply Due to Statute or Regulation
---------------------------------------------------
If it is impossible for You to comply with any of the terms of this
License with respect to some or all of the Covered Software due to
statute, judicial order, or regulation then You must: (a) comply with
the terms of this License to the maximum extent possible; and (b)
describe the limitations and the code they affect. Such description must
be placed in a text file included with all distributions of the Covered
Software under this License. Except to the extent prohibited by statute
or regulation, such description must be sufficiently detailed for a
recipient of ordinary skill to be able to understand it.
5. Termination
--------------
5.1. The rights granted under this License will terminate automatically
if You fail to comply with any of its terms. However, if You become
compliant, then the rights granted under this License from a particular
Contributor are reinstated (a) provisionally, unless and until such
Contributor explicitly and finally terminates Your grants, and (b) on an
ongoing basis, if such Contributor fails to notify You of the
non-compliance by some reasonable means prior to 60 days after You have
come back into compliance. Moreover, Your grants from a particular
Contributor are reinstated on an ongoing basis if such Contributor
notifies You of the non-compliance by some reasonable means, this is the
first time You have received notice of non-compliance with this License
from such Contributor, and You become compliant prior to 30 days after
Your receipt of the notice.
5.2. If You initiate litigation against any entity by asserting a patent
infringement claim (excluding declaratory judgment actions,
counter-claims, and cross-claims) alleging that a Contributor Version
directly or indirectly infringes any patent, then the rights granted to
You by any and all Contributors for the Covered Software under Section
2.1 of this License shall terminate.
5.3. In the event of termination under Sections 5.1 or 5.2 above, all
end user license agreements (excluding distributors and resellers) which
have been validly granted by You or Your distributors under this License
prior to termination shall survive termination.
************************************************************************
* *
* 6. Disclaimer of Warranty *
* ------------------------- *
* *
* Covered Software is provided under this License on an "as is" *
* basis, without warranty of any kind, either expressed, implied, or *
* statutory, including, without limitation, warranties that the *
* Covered Software is free of defects, merchantable, fit for a *
* particular purpose or non-infringing. The entire risk as to the *
* quality and performance of the Covered Software is with You. *
* Should any Covered Software prove defective in any respect, You *
* (not any Contributor) assume the cost of any necessary servicing, *
* repair, or correction. This disclaimer of warranty constitutes an *
* essential part of this License. No use of any Covered Software is *
* authorized under this License except under this disclaimer. *
* *
************************************************************************
************************************************************************
* *
* 7. Limitation of Liability *
* -------------------------- *
* *
* Under no circumstances and under no legal theory, whether tort *
* (including negligence), contract, or otherwise, shall any *
* Contributor, or anyone who distributes Covered Software as *
* permitted above, be liable to You for any direct, indirect, *
* special, incidental, or consequential damages of any character *
* including, without limitation, damages for lost profits, loss of *
* goodwill, work stoppage, computer failure or malfunction, or any *
* and all other commercial damages or losses, even if such party *
* shall have been informed of the possibility of such damages. This *
* limitation of liability shall not apply to liability for death or *
* personal injury resulting from such party's negligence to the *
* extent applicable law prohibits such limitation. Some *
* jurisdictions do not allow the exclusion or limitation of *
* incidental or consequential damages, so this exclusion and *
* limitation may not apply to You. *
* *
************************************************************************
8. Litigation
-------------
Any litigation relating to this License may be brought only in the
courts of a jurisdiction where the defendant maintains its principal
place of business and such litigation shall be governed by laws of that
jurisdiction, without reference to its conflict-of-law provisions.
Nothing in this Section shall prevent a party's ability to bring
cross-claims or counter-claims.
9. Miscellaneous
----------------
This License represents the complete agreement concerning the subject
matter hereof. If any provision of this License is held to be
unenforceable, such provision shall be reformed only to the extent
necessary to make it enforceable. Any law or regulation which provides
that the language of a contract shall be construed against the drafter
shall not be used to construe this License against a Contributor.
10. Versions of the License
---------------------------
10.1. New Versions
Mozilla Foundation is the license steward. Except as provided in Section
10.3, no one other than the license steward has the right to modify or
publish new versions of this License. Each version will be given a
distinguishing version number.
10.2. Effect of New Versions
You may distribute the Covered Software under the terms of the version
of the License under which You originally received the Covered Software,
or under the terms of any subsequent version published by the license
steward.
10.3. Modified Versions
If you create software not governed by this License, and you want to
create a new license for such software, you may create and use a
modified version of this License if you rename the license and remove
any references to the name of the license steward (except to note that
such modified license differs from this License).
10.4. Distributing Source Code Form that is Incompatible With Secondary
Licenses
If You choose to distribute Source Code Form that is Incompatible With
Secondary Licenses under the terms of this version of the License, the
notice described in Exhibit B of this License must be attached.
Exhibit A - Source Code Form License Notice
-------------------------------------------
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
If it is not possible or desirable to put the notice in a particular
file, then You may include the notice in a location (such as a LICENSE
file in a relevant directory) where a recipient would be likely to look
for such a notice.
You may add additional accurate notices of copyright ownership.
Exhibit B - "Incompatible With Secondary Licenses" Notice
---------------------------------------------------------
This Source Code Form is "Incompatible With Secondary Licenses", as
defined by the Mozilla Public License, v. 2.0.
================================================
FILE: boringNotch/Assets.xcassets/AccentColor.colorset/Contents.json
================================================
{
"colors" : [
{
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
================================================
FILE: boringNotch/Assets.xcassets/AppIcon.appiconset/Contents.json
================================================
{
"images" : [
{
"filename" : "notch-stage-icon2 2.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "16x16"
},
{
"filename" : "notch-stage-icon2 5.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "16x16"
},
{
"filename" : "notch-stage-icon2 6.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "32x32"
},
{
"filename" : "notch-stage-icon2 11.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "32x32"
},
{
"filename" : "notch-stage-icon2 12.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "128x128"
},
{
"filename" : "notch-stage-icon2 13.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "128x128"
},
{
"filename" : "notch-stage-icon2 7.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "256x256"
},
{
"filename" : "notch-stage-icon2 8.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "256x256"
},
{
"filename" : "notch-stage-icon2 9.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "512x512"
},
{
"filename" : "notch-stage-icon2 10.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "512x512"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
================================================
FILE: boringNotch/Assets.xcassets/Contents.json
================================================
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
================================================
FILE: boringNotch/Assets.xcassets/Github.imageset/Contents.json
================================================
{
"images" : [
{
"filename" : "GitHub Mark White.svg",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "GitHub Mark White 1.svg",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "GitHub Mark White 2.svg",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
================================================
FILE: boringNotch/Assets.xcassets/bolt.imageset/Contents.json
================================================
{
"images" : [
{
"filename" : "bolt.png",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
================================================
FILE: boringNotch/Assets.xcassets/chrome.imageset/Contents.json
================================================
{
"images" : [
{
"filename" : "Google Chrome macOS BigSur Icon.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "Google Chrome macOS BigSur Icon 1.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "Google Chrome macOS BigSur Icon 2.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
================================================
FILE: boringNotch/Assets.xcassets/defaultmusic.imageset/Contents.json
================================================
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
================================================
FILE: boringNotch/Assets.xcassets/logo.imageset/Contents.json
================================================
{
"images" : [
{
"filename" : "256-mac 1.png",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
================================================
FILE: boringNotch/Assets.xcassets/logo2.imageset/Contents.json
================================================
{
"images" : [
{
"filename" : "BoringNotch icon.png",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
================================================
FILE: boringNotch/Assets.xcassets/plug.imageset/Contents.json
================================================
{
"images" : [
{
"filename" : "plug.png",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
================================================
FILE: boringNotch/Assets.xcassets/sparkle.imageset/Contents.json
================================================
{
"images" : [
{
"filename" : "sparkle.svg",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
================================================
FILE: boringNotch/Assets.xcassets/spotlight.imageset/Contents.json
================================================
{
"images" : [
{
"filename" : "spotlight.svg",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
================================================
FILE: boringNotch/Assets.xcassets/theboringteam.imageset/Contents.json
================================================
{
"images" : [
{
"filename" : "TheBoringTeam.svg",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
================================================
FILE: boringNotch/BoringViewCoordinator.swift
================================================
//
// BoringViewCoordinator.swift
// boringNotch
//
// Created by Alexander on 2024-11-20.
//
import AppKit
import Combine
import Defaults
import SwiftUI
enum SneakContentType {
case brightness
case volume
case backlight
case music
case mic
case battery
case download
}
struct sneakPeek {
var show: Bool = false
var type: SneakContentType = .music
var value: CGFloat = 0
var icon: String = ""
}
struct SharedSneakPeek: Codable {
var show: Bool
var type: String
var value: String
var icon: String
}
enum BrowserType {
case chromium
case safari
}
struct ExpandedItem {
var show: Bool = false
var type: SneakContentType = .battery
var value: CGFloat = 0
var browser: BrowserType = .chromium
}
@MainActor
class BoringViewCoordinator: ObservableObject {
static let shared = BoringViewCoordinator()
@Published var currentView: NotchViews = .home
@Published var helloAnimationRunning: Bool = false
private var sneakPeekDispatch: DispatchWorkItem?
private var expandingViewDispatch: DispatchWorkItem?
private var hudEnableTask: Task<Void, Never>?
@AppStorage("firstLaunch") var firstLaunch: Bool = true
@AppStorage("showWhatsNew") var showWhatsNew: Bool = true
@AppStorage("musicLiveActivityEnabled") var musicLiveActivityEnabled: Bool = true
@AppStorage("currentMicStatus") var currentMicStatus: Bool = true
@AppStorage("alwaysShowTabs") var alwaysShowTabs: Bool = true {
didSet {
if !alwaysShowTabs {
openLastTabByDefault = false
if ShelfStateViewModel.shared.isEmpty || !Defaults[.openShelfByDefault] {
currentView = .home
}
}
}
}
@AppStorage("openLastTabByDefault") var openLastTabByDefault: Bool = false {
didSet {
if openLastTabByDefault {
alwaysShowTabs = true
}
}
}
@Default(.hudReplacement) var hudReplacement: Bool
// Legacy storage for migration
@AppStorage("preferred_screen_name") private var legacyPreferredScreenName: String?
// New UUID-based storage
@AppStorage("preferred_screen_uuid") var preferredScreenUUID: String? {
didSet {
if let uuid = preferredScreenUUID {
selectedScreenUUID = uuid
}
NotificationCenter.default.post(name: Notification.Name.selectedScreenChanged, object: nil)
}
}
@Published var selectedScreenUUID: String = NSScreen.main?.displayUUID ?? ""
@Published var optionKeyPressed: Bool = true
private var accessibilityObserver: Any?
private var hudReplacementCancellable: AnyCancellable?
private init() {
// Perform migration from name-based to UUID-based storage
if preferredScreenUUID == nil, let legacyName = legacyPreferredScreenName {
// Try to find screen by name and migrate to UUID
if let screen = NSScreen.screens.first(where: { $0.localizedName == legacyName }),
let uuid = screen.displayUUID {
preferredScreenUUID = uuid
NSLog("✅ Migrated display preference from name '\(legacyName)' to UUID '\(uuid)'")
} else {
// Fallback to main screen if legacy screen not found
preferredScreenUUID = NSScreen.main?.displayUUID
NSLog("⚠️ Could not find display named '\(legacyName)', falling back to main screen")
}
// Clear legacy value after migration
legacyPreferredScreenName = nil
} else if preferredScreenUUID == nil {
// No legacy value, use main screen
preferredScreenUUID = NSScreen.main?.displayUUID
}
selectedScreenUUID = preferredScreenUUID ?? NSScreen.main?.displayUUID ?? ""
// Observe changes to accessibility authorization and react accordingly
accessibilityObserver = NotificationCenter.default.addObserver(
forName: Notification.Name.accessibilityAuthorizationChanged,
object: nil,
queue: .main
) { _ in
Task { @MainActor in
if Defaults[.hudReplacement] {
await MediaKeyInterceptor.shared.start(promptIfNeeded: false)
}
}
}
// Observe changes to hudReplacement
hudReplacementCancellable = Defaults.publisher(.hudReplacement)
.sink { [weak self] change in
Task { @MainActor in
guard let self = self else { return }
self.hudEnableTask?.cancel()
self.hudEnableTask = nil
if change.newValue {
self.hudEnableTask = Task { @MainActor in
let granted = await XPCHelperClient.shared.ensureAccessibilityAuthorization(promptIfNeeded: true)
if Task.isCancelled { return }
if granted {
await MediaKeyInterceptor.shared.start()
} else {
Defaults[.hudReplacement] = false
}
}
} else {
MediaKeyInterceptor.shared.stop()
}
}
}
Task { @MainActor in
helloAnimationRunning = firstLaunch
if Defaults[.hudReplacement] {
let authorized = await XPCHelperClient.shared.isAccessibilityAuthorized()
if !authorized {
Defaults[.hudReplacement] = false
} else {
await MediaKeyInterceptor.shared.start(promptIfNeeded: false)
}
}
}
}
@objc func sneakPeekEvent(_ notification: Notification) {
let decoder = JSONDecoder()
if let decodedData = try? decoder.decode(
SharedSneakPeek.self, from: notification.userInfo?.first?.value as! Data)
{
let contentType =
decodedData.type == "brightness"
? SneakContentType.brightness
: decodedData.type == "volume"
? SneakContentType.volume
: decodedData.type == "backlight"
? SneakContentType.backlight
: decodedData.type == "mic"
? SneakContentType.mic : SneakContentType.brightness
let formatter = NumberFormatter()
formatter.locale = Locale(identifier: "en_US_POSIX")
formatter.numberStyle = .decimal
let value = CGFloat((formatter.number(from: decodedData.value) ?? 0.0).floatValue)
let icon = decodedData.icon
print("Decoded: \(decodedData), Parsed value: \(value)")
toggleSneakPeek(status: decodedData.show, type: contentType, value: value, icon: icon)
} else {
print("Failed to decode JSON data")
}
}
func toggleSneakPeek(
status: Bool, type: SneakContentType, duration: TimeInterval = 1.5, value: CGFloat = 0,
icon: String = ""
) {
sneakPeekDuration = duration
if type != .music {
// close()
if !Defaults[.hudReplacement] {
return
}
}
Task { @MainActor in
withAnimation(.smooth) {
self.sneakPeek.show = status
self.sneakPeek.type = type
self.sneakPeek.value = value
self.sneakPeek.icon = icon
}
}
if type == .mic {
currentMicStatus = value == 1
}
}
private var sneakPeekDuration: TimeInterval = 1.5
private var sneakPeekTask: Task<Void, Never>?
// Helper function to manage sneakPeek timer using Swift Concurrency
private func scheduleSneakPeekHide(after duration: TimeInterval) {
sneakPeekTask?.cancel()
sneakPeekTask = Task { [weak self] in
try? await Task.sleep(for: .seconds(duration))
guard let self = self, !Task.isCancelled else { return }
await MainActor.run {
withAnimation {
self.toggleSneakPeek(status: false, type: .music)
self.sneakPeekDuration = 1.5
}
}
}
}
@Published var sneakPeek: sneakPeek = .init() {
didSet {
if sneakPeek.show {
scheduleSneakPeekHide(after: sneakPeekDuration)
} else {
sneakPeekTask?.cancel()
}
}
}
func toggleExpandingView(
status: Bool,
type: SneakContentType,
value: CGFloat = 0,
browser: BrowserType = .chromium
) {
Task { @MainActor in
withAnimation(.smooth) {
self.expandingView.show = status
self.expandingView.type = type
self.expandingView.value = value
self.expandingView.browser = browser
}
}
}
private var expandingViewTask: Task<Void, Never>?
@Published var expandingView: ExpandedItem = .init() {
didSet {
if expandingView.show {
expandingViewTask?.cancel()
let duration: TimeInterval = (expandingView.type == .download ? 2 : 3)
let currentType = expandingView.type
expandingViewTask = Task { [weak self] in
try? await Task.sleep(for: .seconds(duration))
guard let self = self, !Task.isCancelled else { return }
self.toggleExpandingView(status: false, type: currentType)
}
} else {
expandingViewTask?.cancel()
}
}
}
func showEmpty() {
currentView = .home
}
}
================================================
FILE: boringNotch/ContentView.swift
================================================
//
// ContentView.swift
// boringNotchApp
//
// Created by Harsh Vardhan Goswami on 02/08/24
// Modified by Richard Kunkli on 24/08/2024.
//
import AVFoundation
import Combine
import Defaults
import KeyboardShortcuts
import SwiftUI
import SwiftUIIntrospect
@MainActor
struct ContentView: View {
@EnvironmentObject var vm: BoringViewModel
@ObservedObject var webcamManager = WebcamManager.shared
@ObservedObject var coordinator = BoringViewCoordinator.shared
@ObservedObject var musicManager = MusicManager.shared
@ObservedObject var batteryModel = BatteryStatusViewModel.shared
@ObservedObject var brightnessManager = BrightnessManager.shared
@ObservedObject var volumeManager = VolumeManager.shared
@State private var hoverTask: Task<Void, Never>?
@State private var isHovering: Bool = false
@State private var anyDropDebounceTask: Task<Void, Never>?
@State private var gestureProgress: CGFloat = .zero
@State private var haptics: Bool = false
@Namespace var albumArtNamespace
@Default(.useMusicVisualizer) var useMusicVisualizer
@Default(.showNotHumanFace) var showNotHumanFace
// Shared interactive spring for movement/resizing to avoid conflicting animations
private let animationSpring = Animation.interactiveSpring(response: 0.38, dampingFraction: 0.8, blendDuration: 0)
private let extendedHoverPadding: CGFloat = 30
private let zeroHeightHoverPadding: CGFloat = 10
private var topCornerRadius: CGFloat {
((vm.notchState == .open) && Defaults[.cornerRadiusScaling])
? cornerRadiusInsets.opened.top
: cornerRadiusInsets.closed.top
}
private var currentNotchShape: NotchShape {
NotchShape(
topCornerRadius: topCornerRadius,
bottomCornerRadius: ((vm.notchState == .open) && Defaults[.cornerRadiusScaling])
? cornerRadiusInsets.opened.bottom
: cornerRadiusInsets.closed.bottom
)
}
private var computedChinWidth: CGFloat {
var chinWidth: CGFloat = vm.closedNotchSize.width
if coordinator.expandingView.type == .battery && coordinator.expandingView.show
&& vm.notchState == .closed && Defaults[.showPowerStatusNotifications]
{
chinWidth = 640
} else if (!coordinator.expandingView.show || coordinator.expandingView.type == .music)
&& vm.notchState == .closed && (musicManager.isPlaying || !musicManager.isPlayerIdle)
&& coordinator.musicLiveActivityEnabled && !vm.hideOnClosed
{
chinWidth += (2 * max(0, vm.effectiveClosedNotchHeight - 12) + 20)
} else if !coordinator.expandingView.show && vm.notchState == .closed
&& (!musicManager.isPlaying && musicManager.isPlayerIdle) && Defaults[.showNotHumanFace]
&& !vm.hideOnClosed
{
chinWidth += (2 * max(0, vm.effectiveClosedNotchHeight - 12) + 20)
}
return chinWidth
}
var body: some View {
// Calculate scale based on gesture progress only
let gestureScale: CGFloat = {
guard gestureProgress != 0 else { return 1.0 }
let scaleFactor = 1.0 + gestureProgress * 0.01
return max(0.6, scaleFactor)
}()
ZStack(alignment: .top) {
VStack(spacing: 0) {
let mainLayout = NotchLayout()
.frame(alignment: .top)
.padding(
.horizontal,
vm.notchState == .open
? Defaults[.cornerRadiusScaling]
? (cornerRadiusInsets.opened.top) : (cornerRadiusInsets.opened.bottom)
: cornerRadiusInsets.closed.bottom
)
.padding([.horizontal, .bottom], vm.notchState == .open ? 12 : 0)
.background(.black)
.clipShape(currentNotchShape)
.overlay(alignment: .top) {
Rectangle()
.fill(.black)
.frame(height: 1)
.padding(.horizontal, topCornerRadius)
}
.shadow(
color: ((vm.notchState == .open || isHovering) && Defaults[.enableShadow])
? .black.opacity(0.7) : .clear, radius: Defaults[.cornerRadiusScaling] ? 6 : 4
)
.padding(
.bottom,
vm.effectiveClosedNotchHeight == 0 ? 10 : 0
)
mainLayout
.frame(height: vm.notchState == .open ? vm.notchSize.height : nil)
.conditionalModifier(true) { view in
let openAnimation = Animation.spring(response: 0.42, dampingFraction: 0.8, blendDuration: 0)
let closeAnimation = Animation.spring(response: 0.45, dampingFraction: 1.0, blendDuration: 0)
return view
.animation(vm.notchState == .open ? openAnimation : closeAnimation, value: vm.notchState)
.animation(.smooth, value: gestureProgress)
}
.contentShape(Rectangle())
.onHover { hovering in
handleHover(hovering)
}
.onTapGesture {
doOpen()
}
.conditionalModifier(Defaults[.enableGestures]) { view in
view
.panGesture(direction: .down) { translation, phase in
handleDownGesture(translation: translation, phase: phase)
}
}
.conditionalModifier(Defaults[.closeGestureEnabled] && Defaults[.enableGestures]) { view in
view
.panGesture(direction: .up) { translation, phase in
handleUpGesture(translation: translation, phase: phase)
}
}
.onReceive(NotificationCenter.default.publisher(for: .sharingDidFinish)) { _ in
if vm.notchState == .open && !isHovering && !vm.isBatteryPopoverActive {
hoverTask?.cancel()
hoverTask = Task {
try? await Task.sleep(for: .milliseconds(100))
guard !Task.isCancelled else { return }
await MainActor.run {
if self.vm.notchState == .open && !self.isHovering && !self.vm.isBatteryPopoverActive && !SharingStateManager.shared.preventNotchClose {
self.vm.close()
}
}
}
}
}
.onChange(of: vm.notchState) { _, newState in
if newState == .closed && isHovering {
withAnimation {
isHovering = false
}
}
}
.onChange(of: vm.isBatteryPopoverActive) {
if !vm.isBatteryPopoverActive && !isHovering && vm.notchState == .open && !SharingStateManager.shared.preventNotchClose {
hoverTask?.cancel()
hoverTask = Task {
try? await Task.sleep(for: .milliseconds(100))
guard !Task.isCancelled else { return }
await MainActor.run {
if !self.vm.isBatteryPopoverActive && !self.isHovering && self.vm.notchState == .open && !SharingStateManager.shared.preventNotchClose {
self.vm.close()
}
}
}
}
}
.sensoryFeedback(.alignment, trigger: haptics)
.contextMenu {
Button("Settings") {
SettingsWindowController.shared.showWindow()
}
.keyboardShortcut(KeyEquivalent(","), modifiers: .command)
// Button("Edit") { // Doesnt work....
// let dn = DynamicNotch(content: EditPanelView())
// dn.toggle()
// }
// .keyboardShortcut("E", modifiers: .command)
}
if vm.chinHeight > 0 {
Rectangle()
.fill(Color.black.opacity(0.01))
.frame(width: computedChinWidth, height: vm.chinHeight)
}
}
}
.padding(.bottom, 8)
.frame(maxWidth: windowSize.width, maxHeight: windowSize.height, alignment: .top)
.compositingGroup()
.scaleEffect(
x: gestureScale,
y: gestureScale,
anchor: .top
)
.animation(.smooth, value: gestureProgress)
.background(dragDetector)
.preferredColorScheme(.dark)
.environmentObject(vm)
.onChange(of: vm.anyDropZoneTargeting) { _, isTargeted in
anyDropDebounceTask?.cancel()
if isTargeted {
if vm.notchState == .closed {
coordinator.currentView = .shelf
doOpen()
}
return
}
anyDropDebounceTask = Task { @MainActor in
try? await Task.sleep(for: .milliseconds(500))
guard !Task.isCancelled else { return }
if vm.dropEvent {
vm.dropEvent = false
return
}
vm.dropEvent = false
if !SharingStateManager.shared.preventNotchClose {
vm.close()
}
}
}
}
@ViewBuilder
func NotchLayout() -> some View {
VStack(alignment: .leading) {
VStack(alignment: .leading) {
if coordinator.helloAnimationRunning {
Spacer()
HelloAnimation(onFinish: {
vm.closeHello()
}).frame(
width: getClosedNotchSize().width,
height: 80
)
.padding(.top, 40)
Spacer()
} else {
if coordinator.expandingView.type == .battery && coordinator.expandingView.show
&& vm.notchState == .closed && Defaults[.showPowerStatusNotifications]
{
HStack(spacing: 0) {
HStack {
Text(batteryModel.statusText)
.font(.subheadline)
.foregroundStyle(.white)
}
Rectangle()
.fill(.black)
.frame(width: vm.closedNotchSize.width + 10)
HStack {
BoringBatteryView(
batteryWidth: 30,
isCharging: batteryModel.isCharging,
isInLowPowerMode: batteryModel.isInLowPowerMode,
isPluggedIn: batteryModel.isPluggedIn,
levelBattery: batteryModel.levelBattery,
isForNotification: true
)
}
.frame(width: 76, alignment: .trailing)
}
.frame(height: vm.effectiveClosedNotchHeight, alignment: .center)
} else if coordinator.sneakPeek.show && Defaults[.inlineHUD] && (coordinator.sneakPeek.type != .music) && (coordinator.sneakPeek.type != .battery) && vm.notchState == .closed {
InlineHUD(type: $coordinator.sneakPeek.type, value: $coordinator.sneakPeek.value, icon: $coordinator.sneakPeek.icon, hoverAnimation: $isHovering, gestureProgress: $gestureProgress)
.transition(.opacity)
} else if (!coordinator.expandingView.show || coordinator.expandingView.type == .music) && vm.notchState == .closed && (musicManager.isPlaying || !musicManager.isPlayerIdle) && coordinator.musicLiveActivityEnabled && !vm.hideOnClosed {
MusicLiveActivity()
.frame(alignment: .center)
} else if !coordinator.expandingView.show && vm.notchState == .closed && (!musicManager.isPlaying && musicManager.isPlayerIdle) && Defaults[.showNotHumanFace] && !vm.hideOnClosed {
BoringFaceAnimation()
} else if vm.notchState == .open {
BoringHeader()
.frame(height: max(24, vm.effectiveClosedNotchHeight))
.opacity(gestureProgress != 0 ? 1.0 - min(abs(gestureProgress) * 0.1, 0.3) : 1.0)
} else {
Rectangle().fill(.clear).frame(width: vm.closedNotchSize.width - 20, height: vm.effectiveClosedNotchHeight)
}
if coordinator.sneakPeek.show {
if (coordinator.sneakPeek.type != .music) && (coordinator.sneakPeek.type != .battery) && !Defaults[.inlineHUD] && vm.notchState == .closed {
SystemEventIndicatorModifier(
eventType: $coordinator.sneakPeek.type,
value: $coordinator.sneakPeek.value,
icon: $coordinator.sneakPeek.icon,
sendEventBack: { newVal in
switch coordinator.sneakPeek.type {
case .volume:
VolumeManager.shared.setAbsolute(Float32(newVal))
case .brightness:
BrightnessManager.shared.setAbsolute(value: Float32(newVal))
default:
break
}
}
)
.padding(.bottom, 10)
.padding(.leading, 4)
.padding(.trailing, 8)
}
// Old sneak peek music
else if coordinator.sneakPeek.type == .music {
if vm.notchState == .closed && !vm.hideOnClosed && Defaults[.sneakPeekStyles] == .standard {
HStack(alignment: .center) {
Image(systemName: "music.note")
GeometryReader { geo in
MarqueeText(.constant(musicManager.songTitle + " - " + musicManager.artistName), textColor: Defaults[.playerColorTinting] ? Color(nsColor: musicManager.avgColor).ensureMinimumBrightness(factor: 0.6) : .gray, minDuration: 1, frameWidth: geo.size.width)
}
}
.foregroundStyle(.gray)
.padding(.bottom, 10)
}
}
}
}
}
.conditionalModifier((coordinator.sneakPeek.show && (coordinator.sneakPeek.type == .music) && vm.notchState == .closed && !vm.hideOnClosed && Defaults[.sneakPeekStyles] == .standard) || (coordinator.sneakPeek.show && (coordinator.sneakPeek.type != .music) && (vm.notchState == .closed))) { view in
view
.fixedSize()
}
.zIndex(2)
if vm.notchState == .open {
VStack {
switch coordinator.currentView {
case .home:
NotchHomeView(albumArtNamespace: albumArtNamespace)
case .shelf:
ShelfView()
}
}
.transition(
.scale(scale: 0.8, anchor: .top)
.combined(with: .opacity)
.animation(.smooth(duration: 0.35))
)
.zIndex(1)
.allowsHitTesting(vm.notchState == .open)
.opacity(gestureProgress != 0 ? 1.0 - min(abs(gestureProgress) * 0.1, 0.3) : 1.0)
}
}
.onDrop(of: [.fileURL, .url, .utf8PlainText, .plainText, .data], delegate: GeneralDropTargetDelegate(isTargeted: $vm.generalDropTargeting))
}
@ViewBuilder
func BoringFaceAnimation() -> some View {
HStack {
HStack {
Rectangle()
.fill(.clear)
.frame(
width: max(0, vm.effectiveClosedNotchHeight - 12),
height: max(0, vm.effectiveClosedNotchHeight - 12)
)
Rectangle()
.fill(.black)
.frame(width: vm.closedNotchSize.width - 20)
MinimalFaceFeatures()
}
}.frame(
height: vm.effectiveClosedNotchHeight,
alignment: .center
)
}
@ViewBuilder
func MusicLiveActivity() -> some View {
HStack {
Image(nsImage: musicManager.albumArt)
.resizable()
.clipped()
.clipShape(
RoundedRectangle(
cornerRadius: MusicPlayerImageSizes.cornerRadiusInset.closed)
)
.matchedGeometryEffect(id: "albumArt", in: albumArtNamespace)
.frame(
width: max(0, vm.effectiveClosedNotchHeight - 12),
height: max(0, vm.effectiveClosedNotchHeight - 12)
)
Rectangle()
.fill(.black)
.overlay(
HStack(alignment: .top) {
if coordinator.expandingView.show
&& coordinator.expandingView.type == .music
{
MarqueeText(
.constant(musicManager.songTitle),
textColor: Defaults[.coloredSpectrogram]
? Color(nsColor: musicManager.avgColor) : Color.gray,
minDuration: 0.4,
frameWidth: 100
)
.opacity(
(coordinator.expandingView.show
&& Defaults[.sneakPeekStyles] == .inline)
? 1 : 0
)
Spacer(minLength: vm.closedNotchSize.width)
// Song Artist
Text(musicManager.artistName)
.lineLimit(1)
.truncationMode(.tail)
.foregroundStyle(
Defaults[.coloredSpectrogram]
? Color(nsColor: musicManager.avgColor)
: Color.gray
)
.opacity(
(coordinator.expandingView.show
&& coordinator.expandingView.type == .music
&& Defaults[.sneakPeekStyles] == .inline)
? 1 : 0
)
}
}
)
.frame(
width: (coordinator.expandingView.show
&& coordinator.expandingView.type == .music
&& Defaults[.sneakPeekStyles] == .inline)
? 380
: vm.closedNotchSize.width
+ -cornerRadiusInsets.closed.top
)
HStack {
if useMusicVisualizer {
Rectangle()
.fill(
Defaults[.coloredSpectrogram]
? Color(nsColor: musicManager.avgColor).gradient
: Color.gray.gradient
)
.frame(width: 50, alignment: .center)
.matchedGeometryEffect(id: "spectrum", in: albumArtNamespace)
.mask {
AudioSpectrumView(isPlaying: $musicManager.isPlaying)
.frame(width: 16, height: 12)
}
} else {
LottieAnimationContainer()
.frame(maxWidth: .infinity, maxHeight: .infinity)
}
}
.frame(
width: max(
0,
vm.effectiveClosedNotchHeight - 12
+ gestureProgress / 2
),
height: max(
0,
vm.effectiveClosedNotchHeight - 12
),
alignment: .center
)
}
.frame(
height: vm.effectiveClosedNotchHeight,
alignment: .center
)
}
@ViewBuilder
var dragDetector: some View {
if Defaults[.boringShelf] && vm.notchState == .closed {
Color.clear
.frame(maxWidth: .infinity, maxHeight: .infinity)
.contentShape(Rectangle())
.onDrop(of: [.fileURL, .url, .utf8PlainText, .plainText, .data], isTargeted: $vm.dragDetectorTargeting) { providers in
vm.dropEvent = true
ShelfStateViewModel.shared.load(providers)
return true
}
} else {
EmptyView()
}
}
private func doOpen() {
withAnimation(animationSpring) {
vm.open()
}
}
// MARK: - Hover Management
private func handleHover(_ hovering: Bool) {
if coordinator.firstLaunch { return }
hoverTask?.cancel()
if hovering {
withAnimation(animationSpring) {
isHovering = true
}
if vm.notchState == .closed && Defaults[.enableHaptics] {
haptics.toggle()
}
guard vm.notchState == .closed,
!coordinator.sneakPeek.show,
Defaults[.openNotchOnHover] else { return }
hoverTask = Task {
try? await Task.sleep(for: .seconds(Defaults[.minimumHoverDuration]))
guard !Task.isCancelled else { return }
await MainActor.run {
guard self.vm.notchState == .closed,
self.isHovering,
!self.coordinator.sneakPeek.show else { return }
self.doOpen()
}
}
} else {
hoverTask = Task {
try? await Task.sleep(for: .milliseconds(100))
guard !Task.isCancelled else { return }
await MainActor.run {
withAnimation(animationSpring) {
self.isHovering = false
}
if self.vm.notchState == .open && !self.vm.isBatteryPopoverActive && !SharingStateManager.shared.preventNotchClose {
self.vm.close()
}
}
}
}
}
// MARK: - Gesture Handling
private func handleDownGesture(translation: CGFloat, phase: NSEvent.Phase) {
guard vm.notchState == .closed else { return }
if phase == .ended {
withAnimation(animationSpring) { gestureProgress = .zero }
return
}
withAnimation(animationSpring) {
gestureProgress = (translation / Defaults[.gestureSensitivity]) * 20
}
if translation > Defaults[.gestureSensitivity] {
if Defaults[.enableHaptics] {
haptics.toggle()
}
withAnimation(animationSpring) {
gestureProgress = .zero
}
doOpen()
}
}
private func handleUpGesture(translation: CGFloat, phase: NSEvent.Phase) {
guard vm.notchState == .open && !vm.isHoveringCalendar else { return }
withAnimation(animationSpring) {
gestureProgress = (translation / Defaults[.gestureSensitivity]) * -20
}
if phase == .ended {
withAnimation(animationSpring) {
gestureProgress = .zero
}
}
if translation > Defaults[.gestureSensitivity] {
withAnimation(animationSpring) {
isHovering = false
}
if !SharingStateManager.shared.preventNotchClose {
gestureProgress = .zero
vm.close()
}
if Defaults[.enableHaptics] {
haptics.toggle()
}
}
}
}
struct FullScreenDropDelegate: DropDelegate {
@Binding var isTargeted: Bool
let onDrop: () -> Void
func dropEntered(info _: DropInfo) {
isTargeted = true
}
func dropExited(info _: DropInfo) {
isTargeted = false
}
func performDrop(info _: DropInfo) -> Bool {
isTargeted = false
onDrop()
return true
}
}
struct GeneralDropTargetDelegate: DropDelegate {
@Binding var isTargeted: Bool
func dropEntered(info: DropInfo) {
isTargeted = true
}
func dropExited(info: DropInfo) {
isTargeted = false
}
func dropUpdated(info: DropInfo) -> DropProposal? {
return DropProposal(operation: .cancel)
}
func performDrop(info: DropInfo) -> Bool {
return false
}
}
#Preview {
let vm = BoringViewModel()
vm.open()
return ContentView()
.environmentObject(vm)
.frame(width: vm.notchSize.width, height: vm.notchSize.height)
}
================================================
FILE: boringNotch/Info.plist
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>SUEnableDownloaderService</key>
<true/>
<key>SUEnableInstallerLauncherService</key>
<true/>
<key>SUFeedURL</key>
<string>https://TheBoredTeam.github.io/boring.notch/appcast.xml</string>
<key>SUPublicEDKey</key>
<string>B1Y47t8C/v8ImurYA+9arEsuCrpxwJSviekiflMElbI=</string>
<key>UTImportedTypeDeclarations</key>
<array>
<dict/>
</array>
</dict>
</plist>
================================================
FILE: boringNotch/Localizable.xcstrings
================================================
{
"sourceLanguage" : "en",
"strings" : {
"" : {
"localizations" : {
"ar" : {
"stringUnit" : {
"state" : "needs_review",
"value" : ""
}
},
"cs" : {
"stringUnit" : {
"state" : "needs_review",
"value" : ""
}
},
"de" : {
"stringUnit" : {
"state" : "needs_review",
"value" : ""
}
},
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : ""
}
},
"en-GB" : {
"stringUnit" : {
"state" : "needs_review",
"value" : ""
}
},
"es" : {
"stringUnit" : {
"state" : "needs_review",
"value" : ""
}
},
"fr" : {
"stringUnit" : {
"state" : "needs_review",
"value" : ""
}
},
"hu" : {
"stringUnit" : {
"state" : "needs_review",
"value" : ""
}
},
"it" : {
"stringUnit" : {
"state" : "needs_review",
"value" : ""
}
},
"ko" : {
"stringUnit" : {
"state" : "needs_review",
"value" : ""
}
},
"pl" : {
"stringUnit" : {
"state" : "needs_review",
"value" : ""
}
},
"pt-BR" : {
"stringUnit" : {
"state" : "needs_review",
"value" : ""
}
},
"ru" : {
"stringUnit" : {
"state" : "needs_review",
"value" : ""
}
},
"tr" : {
"stringUnit" : {
"state" : "needs_review",
"value" : ""
}
},
"uk" : {
"stringUnit" : {
"state" : "needs_review",
"value" : ""
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "needs_review",
"value" : ""
}
}
}
},
" – %lld" : {
"localizations" : {
"ar" : {
"stringUnit" : {
"state" : "needs_review",
"value" : " – %lld"
}
},
"cs" : {
"stringUnit" : {
"state" : "needs_review",
"value" : " – %lld"
}
},
"de" : {
"stringUnit" : {
"state" : "needs_review",
"value" : " – %lld"
}
},
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : " – %lld"
}
},
"en-GB" : {
"stringUnit" : {
"state" : "needs_review",
"value" : " – %lld"
}
},
"es" : {
"stringUnit" : {
"state" : "needs_review",
"value" : " – %lld"
}
},
"fr" : {
"stringUnit" : {
"state" : "needs_review",
"value" : " – %lld"
}
},
"hu" : {
"stringUnit" : {
"state" : "needs_review",
"value" : " – %lld"
}
},
"it" : {
"stringUnit" : {
"state" : "needs_review",
"value" : " – %lld"
}
},
"ko" : {
"stringUnit" : {
"state" : "needs_review",
"value" : " – %lld"
}
},
"pl" : {
"stringUnit" : {
"state" : "needs_review",
"value" : " – %lld"
}
},
"pt-BR" : {
"stringUnit" : {
"state" : "needs_review",
"value" : " – %lld"
}
},
"ru" : {
"stringUnit" : {
"state" : "needs_review",
"value" : " – %lld"
}
},
"tr" : {
"stringUnit" : {
"state" : "needs_review",
"value" : " – %lld"
}
},
"uk" : {
"stringUnit" : {
"state" : "needs_review",
"value" : " – %lld"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "needs_review",
"value" : " – %lld"
}
}
}
},
"'Now Playing' was the only option on previous versions and works with all media apps." : {
"localizations" : {
"ar" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "'Now Playing' was the only option on previous versions and works with all media apps."
}
},
"cs" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "\"Nyní hraje\" byla jediná možnost na předchozích verzích a funguje se všemi mediálními aplikacemi."
}
},
"de" : {
"stringUnit" : {
"state" : "translated",
"value" : "\"Jetzt läuft\" war die einzige Option auf vorherigen Versionen und funktioniert mit allen Medien-Apps."
}
},
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "'Now Playing' was the only option on previous versions and works with all media apps."
}
},
"en-GB" : {
"stringUnit" : {
"state" : "translated",
"value" : "'Now Playing' was the only option on previous versions and works with all media apps."
}
},
"es" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "\"Ahora suena\" era la única opción disponible en versiones anteriores y funciona con todas las aplicaciones multimedia."
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "“Lecture en cours” était la seule option dans les versions précédentes et fonctionne avec toutes les applications multimédias."
}
},
"hu" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "'Now Playing' was the only option on previous versions and works with all media apps."
}
},
"it" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "'In riproduzione' era l’unica opzione nelle versioni precedenti e funziona con tutte le app multimediali."
}
},
"ko" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "이전 버전에서는 ‘현재 재생 중' 만 선택할 수 있었으며, 모든 미디어 애플리케이션과 호환됩니다."
}
},
"pl" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "'Teraz odtwarzane' było jedyną opcją w poprzednich wersjach i działa ze wszystkimi multimediami."
}
},
"pt-BR" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "'Tocando agora' era a única opção em versões anteriores e funciona em todos os aplicativos de mídia."
}
},
"ru" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "'Сейчас играть' была единственной опцией в предыдущих версиях и работает со всеми медиа-приложениями."
}
},
"tr" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "'Şimdi Çalınan' önceki sürümlerdeki tek seçenekti ve tüm medya uygulamalarıyla çalışır."
}
},
"uk" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "'Зараз грає' був єдиним варіантом на попередніх версіях і працює з усіма медіа застосунками."
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "“当前播放”是历史版本中的唯一选项。该选项可兼容所有媒体应用。"
}
}
}
},
"(%@)" : {
"localizations" : {
"ar" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "(%@)"
}
},
"cs" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "(%@)"
}
},
"de" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "(%@)"
}
},
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "(%@)"
}
},
"en-GB" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "(%@)"
}
},
"es" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "(%@)"
}
},
"fr" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "(%@)"
}
},
"hu" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "(%@)"
}
},
"it" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "(%@)"
}
},
"ko" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "(%@)"
}
},
"pl" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "(%@)"
}
},
"pt-BR" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "(%@)"
}
},
"ru" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "(%@)"
}
},
"tr" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "(%@)"
}
},
"uk" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "(%@)"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "(%@)"
}
}
}
},
"%.0f seconds" : {
"localizations" : {
"ar" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%.0f seconds"
}
},
"cs" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%.0f sekund"
}
},
"de" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%.0f Sekunden"
}
},
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "%.0f seconds"
}
},
"en-GB" : {
"stringUnit" : {
"state" : "translated",
"value" : "%.0f seconds"
}
},
"es" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%.0f segundos"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "%.0f secondes"
}
},
"hu" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%.0f seconds"
}
},
"it" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%.0f secondi"
}
},
"ko" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%.0f 초"
}
},
"pl" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%.0f sekundy"
}
},
"pt-BR" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%.0f segundos"
}
},
"ru" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%.0f секунды"
}
},
"tr" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%.0f saniye"
}
},
"uk" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%.0f секунд"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%.0f 秒"
}
}
}
},
"%.1fs" : {
"localizations" : {
"ar" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%.1fs"
}
},
"cs" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%.1fs"
}
},
"de" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%.1fs"
}
},
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "%.1fs"
}
},
"en-GB" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%.1fs"
}
},
"es" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%.1fs"
}
},
"fr" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%.1fs"
}
},
"hu" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%.1fs"
}
},
"it" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%.1fs"
}
},
"ko" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%.1fs"
}
},
"pl" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%.1fs"
}
},
"pt-BR" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%.1fs"
}
},
"ru" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%.1fs"
}
},
"tr" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%.1fs"
}
},
"uk" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%.1fs"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%.1fs"
}
}
}
},
"%@" : {
"localizations" : {
"ar" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%@"
}
},
"cs" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%@"
}
},
"de" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%@"
}
},
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "%@"
}
},
"en-GB" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%@"
}
},
"es" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%@"
}
},
"fr" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%@"
}
},
"hu" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%@"
}
},
"it" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%@"
}
},
"ko" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%@"
}
},
"pl" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%@"
}
},
"pt-BR" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%@"
}
},
"ru" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%@"
}
},
"tr" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%@"
}
},
"uk" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%@"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%@"
}
}
}
},
"%d%%" : {
"localizations" : {
"ar" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%d%%"
}
},
"cs" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%d%%"
}
},
"de" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%d%%"
}
},
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "%d%%"
}
},
"en-GB" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%d%%"
}
},
"es" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%d%%"
}
},
"fr" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%d%%"
}
},
"hu" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%d%%"
}
},
"it" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%d%%"
}
},
"ko" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%d%%"
}
},
"pl" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%d%%"
}
},
"pt-BR" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%d%%"
}
},
"ru" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%d%%"
}
},
"tr" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%d%%"
}
},
"uk" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%d%%"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%d%%"
}
}
}
},
"%lld" : {
"localizations" : {
"ar" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%lld"
}
},
"cs" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%lld"
}
},
"de" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%lld"
}
},
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "%lld"
}
},
"en-GB" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%lld"
}
},
"es" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%lld"
}
},
"fr" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%lld"
}
},
"hu" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%lld"
}
},
"it" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%lld"
}
},
"ko" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%lld"
}
},
"pl" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%lld"
}
},
"pt-BR" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%lld"
}
},
"ru" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%lld"
}
},
"tr" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%lld"
}
},
"uk" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%lld"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%lld"
}
}
}
},
"%lld%%" : {
"localizations" : {
"ar" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%lld%%"
}
},
"cs" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%lld%%"
}
},
"de" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%lld%%"
}
},
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "%lld%%"
}
},
"en-GB" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%lld%%"
}
},
"es" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%lld%%"
}
},
"fr" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%lld%%"
}
},
"hu" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%lld%%"
}
},
"it" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%lld%%"
}
},
"ko" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%lld%%"
}
},
"pl" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%lld%%"
}
},
"pt-BR" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%lld%%"
}
},
"ru" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%lld%%"
}
},
"tr" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%lld%%"
gitextract_x86hf_yn/
├── .devcontainer/
│ └── devcontainer.json
├── .github/
│ ├── FUNDING.yml
│ ├── ISSUE_TEMPLATE/
│ │ ├── 1-bug-report-form.yml
│ │ ├── 1-feature-request-form.yml
│ │ ├── config.yml
│ │ ├── feature_request.md
│ │ └── old_bug_report.md
│ ├── PULL_REQUEST.md
│ ├── dependabot.yml
│ ├── scripts/
│ │ ├── extract_version.py
│ │ └── remove_beta.py
│ └── workflows/
│ ├── build_reusable.yml
│ ├── cicd.yml
│ ├── manual_build.yml
│ ├── release.yml
│ ├── static.yml
│ └── update-version-dropdown.yml
├── .gitignore
├── BoringNotchXPCHelper/
│ ├── BoringNotchXPCHelper.entitlements
│ ├── BoringNotchXPCHelper.swift
│ ├── BoringNotchXPCHelperProtocol.swift
│ ├── Info.plist
│ └── main.swift
├── CONTRIBUTING.md
├── Configuration/
│ ├── dmg/
│ │ ├── .background/
│ │ │ └── background.tiff
│ │ ├── create_dmg.sh
│ │ └── dmgbuild_settings.py
│ └── sparkle/
│ └── generate_appcast
├── LICENSE
├── README.md
├── SECURITY.md
├── THIRD_PARTY_LICENSES
├── boringNotch/
│ ├── Assets.xcassets/
│ │ ├── AccentColor.colorset/
│ │ │ └── Contents.json
│ │ ├── AppIcon.appiconset/
│ │ │ └── Contents.json
│ │ ├── Contents.json
│ │ ├── Github.imageset/
│ │ │ └── Contents.json
│ │ ├── bolt.imageset/
│ │ │ └── Contents.json
│ │ ├── chrome.imageset/
│ │ │ └── Contents.json
│ │ ├── defaultmusic.imageset/
│ │ │ └── Contents.json
│ │ ├── logo.imageset/
│ │ │ └── Contents.json
│ │ ├── logo2.imageset/
│ │ │ └── Contents.json
│ │ ├── plug.imageset/
│ │ │ └── Contents.json
│ │ ├── sparkle.imageset/
│ │ │ └── Contents.json
│ │ ├── spotlight.imageset/
│ │ │ └── Contents.json
│ │ └── theboringteam.imageset/
│ │ └── Contents.json
│ ├── BoringViewCoordinator.swift
│ ├── ContentView.swift
│ ├── Info.plist
│ ├── Localizable.xcstrings
│ ├── MediaControllers/
│ │ ├── AppleMusicController.swift
│ │ ├── MediaControllerProtocol.swift
│ │ ├── NowPlayingController.swift
│ │ ├── SpotifyController.swift
│ │ └── YouTube Music Controller/
│ │ ├── YouTubeMusicAuthentication.swift
│ │ ├── YouTubeMusicController.swift
│ │ ├── YouTubeMusicModels.swift
│ │ └── YouTubeMusicNetworking.swift
│ ├── Preview Content/
│ │ └── Preview Assets.xcassets/
│ │ └── Contents.json
│ ├── Providers/
│ │ └── CalendarServiceProviding.swift
│ ├── Shortcuts/
│ │ └── ShortcutConstants.swift
│ ├── XPCHelperClient/
│ │ ├── BoringNotchXPCHelperProtocol.swift
│ │ └── XPCHelperClient.swift
│ ├── animations/
│ │ ├── HelloAnimation.swift
│ │ └── drop.swift
│ ├── boring.m4a
│ ├── boringNotch.entitlements
│ ├── boringNotchApp.swift
│ ├── components/
│ │ ├── AnimatedFace.swift
│ │ ├── BottomRoundedRectangle.swift
│ │ ├── Calendar/
│ │ │ └── BoringCalendar.swift
│ │ ├── EmptyState.swift
│ │ ├── HoverButton.swift
│ │ ├── Live activities/
│ │ │ ├── BoringBattery.swift
│ │ │ ├── DownloadView.swift
│ │ │ ├── InlineHUD.swift
│ │ │ ├── LiveActivityModifier.swift
│ │ │ ├── MarqueeTextView.swift
│ │ │ ├── OpenNotchHUD.swift
│ │ │ └── SystemEventIndicatorModifier.swift
│ │ ├── LottieView.swift
│ │ ├── Music/
│ │ │ ├── LottieAnimationView.swift
│ │ │ └── MusicVisualizer.swift
│ │ ├── Notch/
│ │ │ ├── BoringExtrasMenu.swift
│ │ │ ├── BoringHeader.swift
│ │ │ ├── BoringNotchSkyLightWindow.swift
│ │ │ ├── BoringNotchWindow.swift
│ │ │ ├── NotchHomeView.swift
│ │ │ └── NotchShape.swift
│ │ ├── Onboarding/
│ │ │ ├── MusicControllerSelectionView.swift
│ │ │ ├── OnboardingFinishView.swift
│ │ │ ├── OnboardingView.swift
│ │ │ ├── PermissionsRequestView.swift
│ │ │ ├── SparkleView.swift
│ │ │ └── WelcomeView.swift
│ │ ├── ProgressIndicator.swift
│ │ ├── Settings/
│ │ │ ├── EditPanelView.swift
│ │ │ ├── ListItemPopover.swift
│ │ │ ├── MusicSlotConfigurationView.swift
│ │ │ ├── SettingsView.swift
│ │ │ ├── SettingsWindowController.swift
│ │ │ └── SoftwareUpdater.swift
│ │ ├── Shelf/
│ │ │ ├── Models/
│ │ │ │ ├── Bookmark.swift
│ │ │ │ └── ShelfItem.swift
│ │ │ ├── Services/
│ │ │ │ ├── ImageProcessingService.swift
│ │ │ │ ├── QuickLookService.swift
│ │ │ │ ├── QuickShareService.swift
│ │ │ │ ├── ShareServiceFinder.swift
│ │ │ │ ├── ShelfActionService.swift
│ │ │ │ ├── ShelfDropService.swift
│ │ │ │ ├── ShelfPersistenceService.swift
│ │ │ │ ├── TemporaryFileStorageService.swift
│ │ │ │ └── ThumbnailService.swift
│ │ │ ├── ViewModels/
│ │ │ │ ├── ShelfItemViewModel.swift
│ │ │ │ ├── ShelfSelectionModel.swift
│ │ │ │ └── ShelfStateViewModel.swift
│ │ │ └── Views/
│ │ │ ├── DragPreviewView.swift
│ │ │ ├── FileShareView.swift
│ │ │ ├── ShelfItemView.swift
│ │ │ └── ShelfView.swift
│ │ ├── Tabs/
│ │ │ ├── TabButton.swift
│ │ │ └── TabSelectionView.swift
│ │ ├── TestView.swift
│ │ ├── Tips/
│ │ │ └── TipStore.swift
│ │ ├── Webcam/
│ │ │ └── WebcamView.swift
│ │ └── WhatsNewView.swift
│ ├── enums/
│ │ └── generic.swift
│ ├── extensions/
│ │ ├── ActionBar.swift
│ │ ├── BundleInfos.swift
│ │ ├── Button+Bouncing.swift
│ │ ├── Color+AccentColor.swift
│ │ ├── ConditionalModifier.swift
│ │ ├── DataTypes+Extensions.swift
│ │ ├── KeyboardShortcutsHelper.swift
│ │ ├── MouseTracker.swift
│ │ ├── NSImage+Extensions.swift
│ │ ├── NSItemProvider+LoadHelpers.swift
│ │ ├── NSMenu+AssociatedObject.swift
│ │ ├── NSScreen+UUID.swift
│ │ ├── PanGesture.swift
│ │ └── URL+SecurityScoped.swift
│ ├── helpers/
│ │ ├── AppIcons.swift
│ │ ├── AppleScriptHelper.swift
│ │ ├── ApplicationRelauncher.swift
│ │ ├── AssociatedObject.swift
│ │ ├── AudioPlayer.swift
│ │ ├── Clipboard+Content.swift
│ │ └── MediaChecker.swift
│ ├── managers/
│ │ ├── BatteryActivityManager.swift
│ │ ├── BrightnessManager.swift
│ │ ├── CalendarManager.swift
│ │ ├── ImageService.swift
│ │ ├── MusicManager.swift
│ │ ├── NotchSpaceManager.swift
│ │ ├── VolumeManager.swift
│ │ └── WebcamManager.swift
│ ├── menu/
│ │ └── StatusBarMenu.swift
│ ├── metal/
│ │ └── visualizer.metal
│ ├── models/
│ │ ├── BatteryStatusViewModel.swift
│ │ ├── BoringViewModel.swift
│ │ ├── CalendarModel.swift
│ │ ├── Constants.swift
│ │ ├── EventModel.swift
│ │ ├── MusicControlButton.swift
│ │ ├── PlaybackState.swift
│ │ └── SharingStateManager.swift
│ ├── observers/
│ │ ├── DragDetector.swift
│ │ ├── FullscreenMediaDetection.swift
│ │ └── MediaKeyInterceptor.swift
│ ├── private/
│ │ └── CGSSpace.swift
│ ├── sizing/
│ │ └── matters.swift
│ └── utils/
│ └── Logger.swift
├── boringNotch.xcodeproj/
│ ├── project.pbxproj
│ └── project.xcworkspace/
│ ├── contents.xcworkspacedata
│ └── xcshareddata/
│ ├── IDEWorkspaceChecks.plist
│ ├── WorkspaceSettings.xcsettings
│ └── swiftpm/
│ └── Package.resolved
├── crowdin.yml
├── mediaremote-adapter/
│ ├── MediaRemoteAdapter.framework/
│ │ └── Versions/
│ │ └── A/
│ │ ├── MediaRemoteAdapter
│ │ ├── Resources/
│ │ │ └── Info.plist
│ │ └── _CodeSignature/
│ │ └── CodeResources
│ ├── MediaRemoteAdapterTestClient
│ └── mediaremote-adapter.pl
└── updater/
└── appcast.xml
SYMBOL INDEX (4 symbols across 2 files) FILE: .github/scripts/extract_version.py function find_first_valid (line 17) | def find_first_valid(text: str): function write_github_output (line 31) | def write_github_output(version: str | None, is_beta_flag: bool) -> None: function main (line 43) | def main(argv=None) -> int: FILE: .github/scripts/remove_beta.py function remove_last_beta_item (line 13) | def remove_last_beta_item(appcast_path: Path) -> int:
Condensed preview — 183 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (1,675K chars).
[
{
"path": ".devcontainer/devcontainer.json",
"chars": 82,
"preview": "{\n \"image\": \"mcr.microsoft.com/devcontainers/universal:2\",\n \"features\": {\n }\n}\n"
},
{
"path": ".github/FUNDING.yml",
"chars": 58,
"preview": "github: [Alexander5015, iamharshdev]\nko-fi: alexander5015\n"
},
{
"path": ".github/ISSUE_TEMPLATE/1-bug-report-form.yml",
"chars": 2508,
"preview": "---\nname: Bug Report\ndescription: File a bug report.\ntitle: '[Bug] '\nlabels:\n - bug\n - unconfirmed\nbody:\n - type: mar"
},
{
"path": ".github/ISSUE_TEMPLATE/1-feature-request-form.yml",
"chars": 3041,
"preview": "name: Feature Request\ndescription: Suggest a new idea or enhancement for Boring Notch\ntitle: \"[FEATURE] \"\nlabels: []\n\nbo"
},
{
"path": ".github/ISSUE_TEMPLATE/config.yml",
"chars": 28,
"preview": "blank_issues_enabled: false\n"
},
{
"path": ".github/ISSUE_TEMPLATE/feature_request.md",
"chars": 624,
"preview": "<!--- This issue template is being replaced with the updated issue form for new features -->\n---\nname: Feature request\na"
},
{
"path": ".github/ISSUE_TEMPLATE/old_bug_report.md",
"chars": 760,
"preview": "<!--- This issue template is deprecated, use the updated issue form for bug reports -->\n---\nname: Bug report\nabout: Crea"
},
{
"path": ".github/PULL_REQUEST.md",
"chars": 1012,
"preview": "## Pull Request template\nPlease, go through these steps before you submit a PR.\n\n1. Make sure that your PR is not a dupl"
},
{
"path": ".github/dependabot.yml",
"chars": 536,
"preview": "# To get started with Dependabot version updates, you'll need to specify which\n# package ecosystems to update and where "
},
{
"path": ".github/scripts/extract_version.py",
"chars": 1910,
"preview": "#!/usr/bin/env python3\n\nfrom __future__ import annotations\n\nimport json\nimport os\nimport re\nimport semver\nimport subproc"
},
{
"path": ".github/scripts/remove_beta.py",
"chars": 1578,
"preview": "#!/usr/bin/env python3\n\"\"\"\nRemove the last beta item from an appcast XML file.\nUsage: remove_beta.py path/to/appcast.xml"
},
{
"path": ".github/workflows/build_reusable.yml",
"chars": 6575,
"preview": "name: \"Reusable Build\"\non:\n workflow_call:\n inputs:\n head_ref:\n required: true\n type: string\n "
},
{
"path": ".github/workflows/cicd.yml",
"chars": 979,
"preview": "name: Build for macOS\n\non:\n push:\n branches:\n - '*'\n pull_request:\n branches:\n - '*'\n\n# https://stacko"
},
{
"path": ".github/workflows/manual_build.yml",
"chars": 1218,
"preview": "name: \"Manual Build\"\non:\n workflow_dispatch:\n inputs:\n head_ref:\n description: 'Branch to build'\n "
},
{
"path": ".github/workflows/release.yml",
"chars": 17218,
"preview": "name: \"Deploy Boring Notch\"\non:\n issue_comment:\n types: [created]\n\nconcurrency:\n group: release-${{ github.event.is"
},
{
"path": ".github/workflows/static.yml",
"chars": 1441,
"preview": "# Simple workflow for deploying static content to GitHub Pages\nname: Deploy static content to Pages\n\non:\n # Runs on pus"
},
{
"path": ".github/workflows/update-version-dropdown.yml",
"chars": 1676,
"preview": "name: Update Version Dropdown in Issue Form\n# Least-privilege: only needs to push the updated issue template file.\npermi"
},
{
"path": ".gitignore",
"chars": 596,
"preview": "# Xcode\n*.xcuserstate\n*.xcuserdata\n*.xcscheme\n*.xcuserdatad\n*.pbxuser\n*.xccheckout\n*.xcscheme\n*.xcplayground\n*.xcuserdat"
},
{
"path": "BoringNotchXPCHelper/BoringNotchXPCHelper.entitlements",
"chars": 241,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/P"
},
{
"path": "BoringNotchXPCHelper/BoringNotchXPCHelper.swift",
"chars": 7678,
"preview": "//\n// BoringNotchXPCHelper.swift\n// BoringNotchXPCHelper\n//\n// Created by Alexander on 2025-11-16.\n//\n\nimport Foundat"
},
{
"path": "BoringNotchXPCHelper/BoringNotchXPCHelperProtocol.swift",
"chars": 1998,
"preview": "//\n// BoringNotchXPCHelperProtocol.swift\n// BoringNotchXPCHelper\n//\n// Created by Alexander on 2025-11-16.\n//\n\nimport"
},
{
"path": "BoringNotchXPCHelper/Info.plist",
"chars": 284,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/P"
},
{
"path": "BoringNotchXPCHelper/main.swift",
"chars": 1646,
"preview": "//\n// main.swift\n// BoringNotchXPCHelper\n//\n// Created by Alexander on 2025-11-16.\n//\n\nimport Foundation\n\nclass Servi"
},
{
"path": "CONTRIBUTING.md",
"chars": 5221,
"preview": "# Contributing\n\nThank you for taking the time to contribute! ❤️\n\nThese guidelines help streamline the contribution proce"
},
{
"path": "Configuration/dmg/create_dmg.sh",
"chars": 3136,
"preview": "#!/usr/bin/env bash\nset -euo pipefail\n\n# Minimal wrapper to create a DMG using dmgbuild.\n# Usage: ./create_dmg.sh <app_p"
},
{
"path": "Configuration/dmg/dmgbuild_settings.py",
"chars": 1660,
"preview": "import os\n\n# dmgbuild settings file. This is read by the `dmgbuild` CLI (or Python API).\n# It uses environment variables"
},
{
"path": "LICENSE",
"chars": 35149,
"preview": " GNU GENERAL PUBLIC LICENSE\n Version 3, 29 June 2007\n\n Copyright (C) 2007 Free "
},
{
"path": "README.md",
"chars": 8211,
"preview": "<h1 align=\"center\">\n <br>\n <a href=\"http://theboring.name\"><img src=\"https://framerusercontent.com/images/RFK4vs0kn8pR"
},
{
"path": "SECURITY.md",
"chars": 793,
"preview": "# Security Policy\n\n## Reporting a Vulnerability\n\nThe Bored Team and community take security bugs in Boring Notch serious"
},
{
"path": "THIRD_PARTY_LICENSES",
"chars": 19825,
"preview": "-----------------------------------------------------------------------------\n BSD 3-Clause Licen"
},
{
"path": "boringNotch/Assets.xcassets/AccentColor.colorset/Contents.json",
"chars": 123,
"preview": "{\n \"colors\" : [\n {\n \"idiom\" : \"universal\"\n }\n ],\n \"info\" : {\n \"author\" : \"xcode\",\n \"version\" : 1\n }"
},
{
"path": "boringNotch/Assets.xcassets/AppIcon.appiconset/Contents.json",
"chars": 1368,
"preview": "{\n \"images\" : [\n {\n \"filename\" : \"notch-stage-icon2 2.png\",\n \"idiom\" : \"mac\",\n \"scale\" : \"1x\",\n "
},
{
"path": "boringNotch/Assets.xcassets/Contents.json",
"chars": 63,
"preview": "{\n \"info\" : {\n \"author\" : \"xcode\",\n \"version\" : 1\n }\n}\n"
},
{
"path": "boringNotch/Assets.xcassets/Github.imageset/Contents.json",
"chars": 407,
"preview": "{\n \"images\" : [\n {\n \"filename\" : \"GitHub Mark White.svg\",\n \"idiom\" : \"universal\",\n \"scale\" : \"1x\"\n "
},
{
"path": "boringNotch/Assets.xcassets/bolt.imageset/Contents.json",
"chars": 154,
"preview": "{\n \"images\" : [\n {\n \"filename\" : \"bolt.png\",\n \"idiom\" : \"universal\"\n }\n ],\n \"info\" : {\n \"author\" :"
},
{
"path": "boringNotch/Assets.xcassets/chrome.imageset/Contents.json",
"chars": 449,
"preview": "{\n \"images\" : [\n {\n \"filename\" : \"Google Chrome macOS BigSur Icon.png\",\n \"idiom\" : \"universal\",\n \"sca"
},
{
"path": "boringNotch/Assets.xcassets/defaultmusic.imageset/Contents.json",
"chars": 271,
"preview": "{\n \"images\" : [\n {\n \"idiom\" : \"universal\",\n \"scale\" : \"1x\"\n },\n {\n \"idiom\" : \"universal\",\n "
},
{
"path": "boringNotch/Assets.xcassets/logo.imageset/Contents.json",
"chars": 159,
"preview": "{\n \"images\" : [\n {\n \"filename\" : \"256-mac 1.png\",\n \"idiom\" : \"universal\"\n }\n ],\n \"info\" : {\n \"auth"
},
{
"path": "boringNotch/Assets.xcassets/logo2.imageset/Contents.json",
"chars": 166,
"preview": "{\n \"images\" : [\n {\n \"filename\" : \"BoringNotch icon.png\",\n \"idiom\" : \"universal\"\n }\n ],\n \"info\" : {\n "
},
{
"path": "boringNotch/Assets.xcassets/plug.imageset/Contents.json",
"chars": 154,
"preview": "{\n \"images\" : [\n {\n \"filename\" : \"plug.png\",\n \"idiom\" : \"universal\"\n }\n ],\n \"info\" : {\n \"author\" :"
},
{
"path": "boringNotch/Assets.xcassets/sparkle.imageset/Contents.json",
"chars": 157,
"preview": "{\n \"images\" : [\n {\n \"filename\" : \"sparkle.svg\",\n \"idiom\" : \"universal\"\n }\n ],\n \"info\" : {\n \"author"
},
{
"path": "boringNotch/Assets.xcassets/spotlight.imageset/Contents.json",
"chars": 159,
"preview": "{\n \"images\" : [\n {\n \"filename\" : \"spotlight.svg\",\n \"idiom\" : \"universal\"\n }\n ],\n \"info\" : {\n \"auth"
},
{
"path": "boringNotch/Assets.xcassets/theboringteam.imageset/Contents.json",
"chars": 163,
"preview": "{\n \"images\" : [\n {\n \"filename\" : \"TheBoringTeam.svg\",\n \"idiom\" : \"universal\"\n }\n ],\n \"info\" : {\n \""
},
{
"path": "boringNotch/BoringViewCoordinator.swift",
"chars": 10065,
"preview": "//\n// BoringViewCoordinator.swift\n// boringNotch\n//\n// Created by Alexander on 2024-11-20.\n//\n\nimport AppKit\nimport C"
},
{
"path": "boringNotch/ContentView.swift",
"chars": 27608,
"preview": "//\n// ContentView.swift\n// boringNotchApp\n//\n// Created by Harsh Vardhan Goswami on 02/08/24\n// Modified by Richard"
},
{
"path": "boringNotch/Info.plist",
"chars": 640,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/P"
},
{
"path": "boringNotch/Localizable.xcstrings",
"chars": 591963,
"preview": "{\n \"sourceLanguage\" : \"en\",\n \"strings\" : {\n \"\" : {\n \"localizations\" : {\n \"ar\" : {\n \"stringUnit"
},
{
"path": "boringNotch/MediaControllers/AppleMusicController.swift",
"chars": 6780,
"preview": "//\n// AppleMusicController.swift\n// boringNotch\n//\n// Created by Alexander on 2025-03-29.\n//\n\nimport Foundation\nimpor"
},
{
"path": "boringNotch/MediaControllers/MediaControllerProtocol.swift",
"chars": 746,
"preview": "//\n// MediaControllerProtocol.swift\n// boringNotch\n//\n// Created by Alexander on 2025-03-29.\n//\n\nimport Foundation\nim"
},
{
"path": "boringNotch/MediaControllers/NowPlayingController.swift",
"chars": 15431,
"preview": "//\n// NowPlayingController.swift\n// boringNotch\n//\n// Created by Alexander on 2025-03-29.\n//\n\nimport AppKit\nimport Co"
},
{
"path": "boringNotch/MediaControllers/SpotifyController.swift",
"chars": 7086,
"preview": "//\n// SpotifyController.swift\n// boringNotch\n//\n// Created by Alexander on 2025-03-29.\n//\n\nimport Foundation\nimport C"
},
{
"path": "boringNotch/MediaControllers/YouTube Music Controller/YouTubeMusicAuthentication.swift",
"chars": 2075,
"preview": "//\n// YouTubeMusicAuthentication.swift\n// boringNotch\n//\n// Created by Alexander on 2025-09-14.\n//\n\nimport Foundation"
},
{
"path": "boringNotch/MediaControllers/YouTube Music Controller/YouTubeMusicController.swift",
"chars": 17121,
"preview": "//\n// YouTubeMusicController.swift\n// boringNotch\n//\n// Created By Alexander on 2025-03-30.\n// Modified by Pranav on"
},
{
"path": "boringNotch/MediaControllers/YouTube Music Controller/YouTubeMusicModels.swift",
"chars": 5068,
"preview": "//\n// YouTubeMusicModels.swift\n// boringNotch\n//\n// Created by Alexander on 2025-09-14.\n//\n\nimport Foundation\n\n// MAR"
},
{
"path": "boringNotch/MediaControllers/YouTube Music Controller/YouTubeMusicNetworking.swift",
"chars": 7267,
"preview": "//\n// YouTubeMusicNetworking.swift\n// boringNotch\n//\n// Created by Alexander on 2025-09-14.\n//\n\nimport Foundation\n\n//"
},
{
"path": "boringNotch/Preview Content/Preview Assets.xcassets/Contents.json",
"chars": 63,
"preview": "{\n \"info\" : {\n \"author\" : \"xcode\",\n \"version\" : 1\n }\n}\n"
},
{
"path": "boringNotch/Providers/CalendarServiceProviding.swift",
"chars": 9472,
"preview": "//\n// CalendarServiceProvider.swift\n// Calendr\n//\n// Created by Paker on 31/12/20.\n// Original source: Original sour"
},
{
"path": "boringNotch/Shortcuts/ShortcutConstants.swift",
"chars": 819,
"preview": "//\n// Constants.swift\n// boringNotch\n//\n// Created by Richard Kunkli on 16/08/2024.\n//\n\nimport KeyboardShortcuts\nimpo"
},
{
"path": "boringNotch/XPCHelperClient/BoringNotchXPCHelperProtocol.swift",
"chars": 1148,
"preview": "//\n// BoringNotchXPCHelperProtocol.swift\n// BoringNotchXPCHelper\n//\n// Created by Alexander on 2025-11-16.\n//\n\nimport"
},
{
"path": "boringNotch/XPCHelperClient/XPCHelperClient.swift",
"chars": 7930,
"preview": "import Foundation\nimport Cocoa\nimport AsyncXPCConnection\n\nfinal class XPCHelperClient: NSObject {\n nonisolated static"
},
{
"path": "boringNotch/animations/HelloAnimation.swift",
"chars": 7424,
"preview": "//\n// HelloAnimation.swift\n// boringNotch\n//\n// Created by Harsh Vardhan Goswami on 08/08/24.\n//\n\nimport SwiftUI\n\ns"
},
{
"path": "boringNotch/animations/drop.swift",
"chars": 571,
"preview": "//\n// drop.swift\n// boringNotch\n//\n// Created by Harsh Vardhan Goswami on 04/08/24.\n//\n\nimport Foundation\nimport S"
},
{
"path": "boringNotch/boringNotch.entitlements",
"chars": 1103,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/P"
},
{
"path": "boringNotch/boringNotchApp.swift",
"chars": 22293,
"preview": "//\n// boringNotchApp.swift\n// boringNotchApp\n//\n// Created by Harsh Vardhan Goswami on 02/08/24.\n//\n\nimport AVFound"
},
{
"path": "boringNotch/components/AnimatedFace.swift",
"chars": 2641,
"preview": "//\n// AnimatedFace.swift\n//\n// Created by Harsh Vardhan Goswami on 04/08/24.\n//\n\nimport SwiftUI\n\nstruct MinimalFaceF"
},
{
"path": "boringNotch/components/BottomRoundedRectangle.swift",
"chars": 1227,
"preview": "\n\nimport SwiftUI\n\n\nstruct BottomRoundedRectangle: Shape {\n var radius: CGFloat\n \n func path(in rect: CGRect) ->"
},
{
"path": "boringNotch/components/Calendar/BoringCalendar.swift",
"chars": 17903,
"preview": "//\n// BoringCalendar.swift\n// boringNotch\n//\n// Created by Harsh Vardhan Goswami on 08/09/24.\n//\n\nimport Defaults\ni"
},
{
"path": "boringNotch/components/EmptyState.swift",
"chars": 593,
"preview": "//\n// EmptyState.swift\n//\n// Created by Harsh Vardhan Goswami on 04/08/24.\n//\n\nimport SwiftUI\n\nstruct EmptyStateView"
},
{
"path": "boringNotch/components/HoverButton.swift",
"chars": 1362,
"preview": "//\n// HoverButton.swift\n// boringNotch\n//\n// Created by Kraigo on 04.09.2024.\n//\n\nimport SwiftUI\n\nstruct HoverButton:"
},
{
"path": "boringNotch/components/Live activities/BoringBattery.swift",
"chars": 8512,
"preview": "import SwiftUI\nimport Defaults\n\n/// A view that displays the battery status with an icon and charging indicator.\nstruct "
},
{
"path": "boringNotch/components/Live activities/DownloadView.swift",
"chars": 1346,
"preview": "//\n// DownloadView.swift\n// boringNotch\n//\n// Created by Harsh Vardhan Goswami on 17/08/24.\n//\n\nimport Foundation\ni"
},
{
"path": "boringNotch/components/Live activities/InlineHUD.swift",
"chars": 6578,
"preview": "//\n// InlineHUDs.swift\n// boringNotch\n//\n// Created by Richard Kunkli on 14/09/2024.\n//\n\nimport SwiftUI\nimport Defaul"
},
{
"path": "boringNotch/components/Live activities/LiveActivityModifier.swift",
"chars": 1045,
"preview": "//\n// LiveActivityModifier.swift\n// boringNotch\n//\n// Created by Richard Kunkli on 12/08/2024.\n//\n\nimport SwiftUI\n\nen"
},
{
"path": "boringNotch/components/Live activities/MarqueeTextView.swift",
"chars": 3121,
"preview": "//\n// MarqueeTextView.swift\n// boringNotch\n//\n// Created by Richard Kunkli on 08/08/2024.\n//\n\nimport SwiftUI\n\nstruct "
},
{
"path": "boringNotch/components/Live activities/OpenNotchHUD.swift",
"chars": 3509,
"preview": "//\n// OpenNotchHUD.swift\n// boringNotch\n//\n// Created by Alexander on 2024-11-23.\n//\n\nimport SwiftUI\nimport Defaults\n"
},
{
"path": "boringNotch/components/Live activities/SystemEventIndicatorModifier.swift",
"chars": 6297,
"preview": " //\n // SystemEventIndicatorModifier.swift\n // boringNotch\n //\n // Created by Richard Kunkli on 12/08/"
},
{
"path": "boringNotch/components/LottieView.swift",
"chars": 1884,
"preview": "//\n// LottieView.swift\n// boringNotch\n//\n// Created by Alexander on 2025-11-14.\n//\n\nimport SwiftUI\nimport Lottie\nimpo"
},
{
"path": "boringNotch/components/Music/LottieAnimationView.swift",
"chars": 621,
"preview": "//\n// LottieAnimationContainer.swift\n// boringNotch\n//\n// Created by Richard Kunkli on 2024. 10. 29..\n//\n\nimport Swif"
},
{
"path": "boringNotch/components/Music/MusicVisualizer.swift",
"chars": 4010,
"preview": "//\n// MusicVisualizer.swift\n// boringNotch\n//\n// Created by Harsh Vardhan Goswami on 02/08/24.\n//\nimport AppKit\nimp"
},
{
"path": "boringNotch/components/Notch/BoringExtrasMenu.swift",
"chars": 2797,
"preview": "//\n// BoringExtrasMenu.swift\n// boringNotch\n//\n// Created by Harsh Vardhan Goswami on 04/08/24.\n//\n\nimport SwiftUI\n"
},
{
"path": "boringNotch/components/Notch/BoringHeader.swift",
"chars": 4771,
"preview": "//\n// BoringHeader.swift\n// boringNotch\n//\n// Created by Harsh Vardhan Goswami on 04/08/24.\n//\n\nimport Defaults\nimp"
},
{
"path": "boringNotch/components/Notch/BoringNotchSkyLightWindow.swift",
"chars": 3096,
"preview": "//\n// BoringNotchSkyLightWindow.swift\n// boringNotch\n//\n// Created by Alexander on 2025-10-20.\n//\n\nimport Cocoa\nimpor"
},
{
"path": "boringNotch/components/Notch/BoringNotchWindow.swift",
"chars": 1079,
"preview": "//\n// BoringNotchWindow.swift\n// boringNotch\n//\n// Created by Harsh Vardhan Goswami on 06/08/24.\n//\n\nimport Cocoa\n\n"
},
{
"path": "boringNotch/components/Notch/NotchHomeView.swift",
"chars": 20754,
"preview": "//\n// NotchHomeView.swift\n// boringNotch\n//\n// Created by Hugo Persson on 2024-08-18.\n// Modified by Harsh Vardhan G"
},
{
"path": "boringNotch/components/Notch/NotchShape.swift",
"chars": 2984,
"preview": "//\n// NotchShape.swift\n// boringNotch\n//\n// Created by Kai Azim on 2023-08-24.\n// Original source: https://github.com/"
},
{
"path": "boringNotch/components/Onboarding/MusicControllerSelectionView.swift",
"chars": 4792,
"preview": "//\n// MusicControllerSelectionView.swift\n// boringNotch\n//\n// Created by Alexander on 2025-06-23.\n//\n\nimport SwiftUI\n"
},
{
"path": "boringNotch/components/Onboarding/OnboardingFinishView.swift",
"chars": 1705,
"preview": "//\n// OnboardingFinishView.swift\n// boringNotch\n//\n// Created by Alexander on 2025-06-23.\n//\n\n\nimport SwiftUI\n\nstruct"
},
{
"path": "boringNotch/components/Onboarding/OnboardingView.swift",
"chars": 6579,
"preview": "//\n// OnboardingView.swift\n// boringNotch\n//\n// Created by Alexander on 2025-06-23.\n//\n\nimport SwiftUI\nimport AVFound"
},
{
"path": "boringNotch/components/Onboarding/PermissionsRequestView.swift",
"chars": 1793,
"preview": "//\n// PermissionsRequestView.swift\n// boringNotch\n//\n// Created by Alexander on 2025-06-23.\n//\n\nimport SwiftUI\n\nstruc"
},
{
"path": "boringNotch/components/Onboarding/SparkleView.swift",
"chars": 2305,
"preview": "//\n// SparkleView.swift\n// boringNotch\n//\n// Created by Richard Kunkli on 2024. 09. 26..\n//\n\nimport SwiftUI\nimport Ap"
},
{
"path": "boringNotch/components/Onboarding/WelcomeView.swift",
"chars": 3183,
"preview": "//\n// WelcomeView.swift\n// boringNotch\n//\n// Created by Richard Kunkli on 2024. 09. 26..\n//\n\nimport SwiftUI\nimport Sw"
},
{
"path": "boringNotch/components/ProgressIndicator.swift",
"chars": 1441,
"preview": " //\n // ProgressIndicator.swift\n // boringNotch\n //\n // Created by Harsh Vardhan Goswami on 11/08/24"
},
{
"path": "boringNotch/components/Settings/EditPanelView.swift",
"chars": 1551,
"preview": "//\n// EditPanelView.swift\n// boringNotch\n//\n// Created by Richard Kunkli on 12/08/2024.\n//\n\nimport SwiftUI\n\nstruct Ed"
},
{
"path": "boringNotch/components/Settings/ListItemPopover.swift",
"chars": 650,
"preview": "//\n// ListItemPopover.swift\n// boringNotch\n//\n// Created by Richard Kunkli on 15/09/2024.\n//\n\nimport SwiftUI\n\nstruct "
},
{
"path": "boringNotch/components/Settings/MusicSlotConfigurationView.swift",
"chars": 14959,
"preview": "//\n// MusicSlotConfigurationView.swift\n// boringNotch\n//\n// Created by Alexander on 2025-11-17.\n//\n\nimport Defaults\ni"
},
{
"path": "boringNotch/components/Settings/SettingsView.swift",
"chars": 72916,
"preview": "//\n// SettingsView.swift\n// boringNotch\n//\n// Created by Richard Kunkli on 07/08/2024.\n//\n\nimport AVFoundation\nimport"
},
{
"path": "boringNotch/components/Settings/SettingsWindowController.swift",
"chars": 3807,
"preview": "//\n// SettingsWindowController.swift\n// boringNotch\n//\n// Created by Alexander on 2025-06-14.\n//\n\nimport AppKit\nimpor"
},
{
"path": "boringNotch/components/Settings/SoftwareUpdater.swift",
"chars": 2112,
"preview": "//\n// SoftwareUpdater.swift\n// boringNotch\n//\n// Created by Richard Kunkli on 09/08/2024.\n//\n\nimport SwiftUI\nimport S"
},
{
"path": "boringNotch/components/Shelf/Models/Bookmark.swift",
"chars": 3014,
"preview": "//\n// Bookmark.swift\n// boringNotch\n//\n// Created by Alexander on 2025-10-08.\n//\n\nimport Foundation\nimport AppKit\n\nst"
},
{
"path": "boringNotch/components/Shelf/Models/ShelfItem.swift",
"chars": 8104,
"preview": "//\n// ShelfItem.swift\n// boringNotch\n//\n// Created by Alexander on 2025-09-24.\n//\n\nimport AppKit\nimport Foundation\n\ne"
},
{
"path": "boringNotch/components/Shelf/Services/ImageProcessingService.swift",
"chars": 11225,
"preview": "//\n// ImageProcessingService.swift\n// boringNotch\n//\n// Created by Alexander on 2025-10-16.\n//\n\nimport Foundation\nimp"
},
{
"path": "boringNotch/components/Shelf/Services/QuickLookService.swift",
"chars": 4419,
"preview": "//\n// QuickLookService.swift\n// boringNotch\n//\n// Created by Alexander on 2025-10-07.\n//\n\nimport Foundation\nimport Un"
},
{
"path": "boringNotch/components/Shelf/Services/QuickShareService.swift",
"chars": 7660,
"preview": "//\n// QuickShareService.swift\n// boringNotch\n//\n// Created by Alexander on 2025-09-24.\n//\n\nimport AppKit\nimport Found"
},
{
"path": "boringNotch/components/Shelf/Services/ShareServiceFinder.swift",
"chars": 1861,
"preview": "//\n// ShareServiceFinder.swift\n// boringNotch\n//\n// Created by Alexander on 2025-10-06.\n//\n\nimport Cocoa\n\nclass Share"
},
{
"path": "boringNotch/components/Shelf/Services/ShelfActionService.swift",
"chars": 1752,
"preview": "//\n// ShelfActionService.swift\n// boringNotch\n//\n// Created by Alexander on 2025-10-07.\n//\n\nimport AppKit\nimport Foun"
},
{
"path": "boringNotch/components/Shelf/Services/ShelfDropService.swift",
"chars": 2233,
"preview": "//\n// ShelfDropService.swift\n// boringNotch\n//\n// Created by Alexander on 2025-09-26.\n//\n\nimport AppKit\nimport Founda"
},
{
"path": "boringNotch/components/Shelf/Services/ShelfPersistenceService.swift",
"chars": 2932,
"preview": "//\n// ShelfPersistenceService.swift\n// boringNotch\n//\n// Created by Alexander on 2025-09-24.\n//\n\nimport Foundation\n\n/"
},
{
"path": "boringNotch/components/Shelf/Services/TemporaryFileStorageService.swift",
"chars": 9319,
"preview": "//\n// TemporaryFileStorageService.swift\n// boringNotch\n//\n// Created by Alexander on 2025-09-24.\n//\n\nimport Foundatio"
},
{
"path": "boringNotch/components/Shelf/Services/ThumbnailService.swift",
"chars": 3065,
"preview": "//\n// ThumbnailService.swift\n// boringNotch\n//\n// Created by Alexander on 2025-10-07.\n//\n\nimport Foundation\nimport Ap"
},
{
"path": "boringNotch/components/Shelf/ViewModels/ShelfItemViewModel.swift",
"chars": 49939,
"preview": "//\n// ShelfItemViewModel.swift\n// boringNotch\n//\n// Created by Alexander on 2025-09-24.\n//\n\nimport Foundation\nimport "
},
{
"path": "boringNotch/components/Shelf/ViewModels/ShelfSelectionModel.swift",
"chars": 2447,
"preview": "//\n// ShelfSelectionModel.swift\n// boringNotch\n//\n// Created by Alexander on 2025-09-26.\n//\n\nimport Foundation\nimport"
},
{
"path": "boringNotch/components/Shelf/ViewModels/ShelfStateViewModel.swift",
"chars": 4587,
"preview": "//\n// ShelfStateViewModel.swift\n// boringNotch\n//\n// Created by Alexander on 2025-10-09.\n\nimport Foundation\nimport Ap"
},
{
"path": "boringNotch/components/Shelf/Views/DragPreviewView.swift",
"chars": 932,
"preview": "import SwiftUI\nimport AppKit\n\nstruct DragPreviewView: View {\n let thumbnail: NSImage?\n let displayName: String\n\n "
},
{
"path": "boringNotch/components/Shelf/Views/FileShareView.swift",
"chars": 4901,
"preview": "//\n// FileShareView.swift\n// boringNotch\n//\n// Created by Alexander on 2025-09-24.\n//\n\nimport AppKit\nimport Defaults\n"
},
{
"path": "boringNotch/components/Shelf/Views/ShelfItemView.swift",
"chars": 13171,
"preview": "//\n// ShelfItemView.swift\n// boringNotch\n//\n// Created by Alexander on 2025-09-24.\n//\n\nimport AppKit\nimport SwiftUI\ni"
},
{
"path": "boringNotch/components/Shelf/Views/ShelfView.swift",
"chars": 3861,
"preview": "//\n// ShelfItemView.swift\n// boringNotch\n//\n// Created by Alexander on 2025-09-24.\n//\n\nimport SwiftUI\nimport AppKit\n\n"
},
{
"path": "boringNotch/components/Tabs/TabButton.swift",
"chars": 577,
"preview": "//\n// TabButton.swift\n// boringNotch\n//\n// Created by Hugo Persson on 2024-08-24.\n//\n\nimport SwiftUI\n\nstruct TabButto"
},
{
"path": "boringNotch/components/Tabs/TabSelectionView.swift",
"chars": 1852,
"preview": "//\n// TabSelectionView.swift\n// boringNotch\n//\n// Created by Hugo Persson on 2024-08-25.\n//\n\nimport SwiftUI\n\nstruct T"
},
{
"path": "boringNotch/components/TestView.swift",
"chars": 3133,
"preview": "//\n// TestView.swift\n// boringNotch\n//\n// Created by Richard Kunkli on 14/08/2024.\n//\n\nimport SwiftUI\n\nstruct FluidSl"
},
{
"path": "boringNotch/components/Tips/TipStore.swift",
"chars": 1433,
"preview": "//\n// TipStore.swift\n// boringNotch\n//\n// Created by Richard Kunkli on 15/09/2024.\n//\n\nimport SwiftUI\nimport TipKit\n\n"
},
{
"path": "boringNotch/components/Webcam/WebcamView.swift",
"chars": 4690,
"preview": "//\n// WebcamView.swift\n// boringNotch\n//\n// Created by Harsh Vardhan Goswami on 19/08/24.\n//\n\nimport AVFoundation\ni"
},
{
"path": "boringNotch/components/WhatsNewView.swift",
"chars": 738,
"preview": "//\n// WhatsNewView.swift\n// boringNotch\n//\n// Created by Richard Kunkli on 09/08/2024.\n//\n\nimport SwiftUI\n\nstruct Wha"
},
{
"path": "boringNotch/enums/generic.swift",
"chars": 1371,
"preview": "//\n// generic.swift\n// boringNotch\n//\n// Created by Harsh Vardhan Goswami on 04/08/24.\n//\n\nimport Foundation\nimport"
},
{
"path": "boringNotch/extensions/ActionBar.swift",
"chars": 866,
"preview": "//\n// ActionBar.swift\n// boringNotch\n//\n// Created by Richard Kunkli on 15/09/2024.\n//\n\nimport SwiftUI\n\nextension Vie"
},
{
"path": "boringNotch/extensions/BundleInfos.swift",
"chars": 1592,
"preview": "//\n// BundleInfos.swift\n// boringNotch\n//\n// Created by Richard Kunkli on 08/08/2024.\n//\n\nimport SwiftUI\n\nextension B"
},
{
"path": "boringNotch/extensions/Button+Bouncing.swift",
"chars": 1111,
"preview": "//\n// Button+Bouncing.swift\n// boringNotch\n//\n// Created by Harsh Vardhan Goswami on 19/08/24.\n//\nimport SwiftUI\nim"
},
{
"path": "boringNotch/extensions/Color+AccentColor.swift",
"chars": 1826,
"preview": "//\n// Color+AccentColor.swift\n// boringNotch\n//\n// Created by Alexander on 2025-10-24.\n//\n\nimport SwiftUI\nimport Defa"
},
{
"path": "boringNotch/extensions/ConditionalModifier.swift",
"chars": 358,
"preview": "//\n// ConditionalModifier.swift\n// boringNotch\n//\n// Created by Richard Kunkli on 20/08/2024.\n//\n\nimport SwiftUI\n\next"
},
{
"path": "boringNotch/extensions/DataTypes+Extensions.swift",
"chars": 2153,
"preview": " //\n // DataTypes+Extensions.swift\n // boringNotch\n //\n // Created by Harsh Vardhan Goswami on 27/08"
},
{
"path": "boringNotch/extensions/KeyboardShortcutsHelper.swift",
"chars": 3017,
"preview": "//\n// KeyboardShortcutsHelper.swift\n// boringNotch\n//\n// Created by Richard Kunkli on 16/08/2024.\n//\n\nimport Keyboard"
},
{
"path": "boringNotch/extensions/MouseTracker.swift",
"chars": 408,
"preview": "//\n// MouseTracker.swift\n// boringNotch\n//\n// Created by Richard Kunkli on 12/08/2024.\n//\n\nimport SwiftUI\n\nextension "
},
{
"path": "boringNotch/extensions/NSImage+Extensions.swift",
"chars": 6104,
"preview": "//\n// Image2Color.swift\n// boringNotch\n//\n// Created by Richard Kunkli on 07/08/2024.\n//\n\nimport SwiftUI\nimport AppKi"
},
{
"path": "boringNotch/extensions/NSItemProvider+LoadHelpers.swift",
"chars": 8132,
"preview": "//\n// NSItemProvider+LoadHelpers.swift\n// boringNotch\n//\n// Created by Alexander on 2025-09-24.\n//\n\n\nimport AppKit\nim"
},
{
"path": "boringNotch/extensions/NSMenu+AssociatedObject.swift",
"chars": 522,
"preview": "//\n// NSMenu+AssociatedObject.swift\n// boringNotch\n//\n// Created by Alexander on 2025-10-05.\n//\n\nimport AppKit\n\npriva"
},
{
"path": "boringNotch/extensions/NSScreen+UUID.swift",
"chars": 2220,
"preview": "//\n// NSScreen+UUID.swift\n// boringNotch\n//\n// Created by Alexander on 2025-11-21.\n//\n\nimport AppKit\nimport CoreGraph"
},
{
"path": "boringNotch/extensions/PanGesture.swift",
"chars": 5566,
"preview": "//\n// PanGesture.swift\n// boringNotch\n//\n// Created by Richard Kunkli on 21/08/2024.\n//\n\nimport AppKit\nimport SwiftUI"
},
{
"path": "boringNotch/extensions/URL+SecurityScoped.swift",
"chars": 1374,
"preview": "//\n// URL+SecurityScoped.swift\n// boringNotch\n//\n// Created by Alexander on 2025-10-07.\n//\n\nimport Foundation\nimport "
},
{
"path": "boringNotch/helpers/AppIcons.swift",
"chars": 1657,
"preview": "//\n// AppIcons.swift\n// boringNotch\n//\n// Created by Harsh Vardhan Goswami on 16/08/24.\n//\n\nimport SwiftUI\nimport A"
},
{
"path": "boringNotch/helpers/AppleScriptHelper.swift",
"chars": 1135,
"preview": "//\n// AppleScriptHelper.swift\n// boringNotch\n//\n// Created by Alexander on 2025-03-29.\n//\n\nimport Foundation\n\nclass A"
},
{
"path": "boringNotch/helpers/ApplicationRelauncher.swift",
"chars": 692,
"preview": "//\n// ApplicationRelauncher.swift\n// boringNotch\n//\n// Created by Corentin132 on 03/10/2025.\n//\n\nimport AppKit\n\nenum "
},
{
"path": "boringNotch/helpers/AssociatedObject.swift",
"chars": 871,
"preview": "//\n// AssociatedObject.swift\n// boringNotch\n//\n// Created by Alexander on 2025-10-05.\n//\n\nimport Foundation\nimport Ob"
},
{
"path": "boringNotch/helpers/AudioPlayer.swift",
"chars": 344,
"preview": "//\n// AudioPlayer.swift\n// boringNotch\n//\n// Created by Harsh Vardhan Goswami on 09/08/24.\n//\n\nimport Foundation\nim"
},
{
"path": "boringNotch/helpers/Clipboard+Content.swift",
"chars": 1482,
"preview": "import AppKit\n\nfunc getAttributedString(content: Any, type: NSPasteboard.PasteboardType) -> NSAttributedString? {\n if"
},
{
"path": "boringNotch/helpers/MediaChecker.swift",
"chars": 2194,
"preview": "//\n// MediaChecker.swift\n// boringNotch\n//\n// Created by Alexander on 2025-07-26.\n//\n\nimport Foundation\n\nfinal class "
},
{
"path": "boringNotch/managers/BatteryActivityManager.swift",
"chars": 12403,
"preview": "import Foundation\nimport IOKit.ps\n\n/// Manages and monitors battery status changes on the device\n/// - Note: This class "
},
{
"path": "boringNotch/managers/BrightnessManager.swift",
"chars": 3396,
"preview": "// BrightnessManager.swift\n// boringNotch\n//\n// Created by JeanLouis on 08/22/24.\n\nimport AppKit\n\nfinal class Brightn"
},
{
"path": "boringNotch/managers/CalendarManager.swift",
"chars": 7359,
"preview": "//\n// CalendarManager.swift\n// boringNotch\n//\n// Created by Harsh Vardhan Goswami on 08/09/24.\n//\n\nimport Defaults\n"
},
{
"path": "boringNotch/managers/ImageService.swift",
"chars": 1456,
"preview": "//\n// ImageService.swift\n// boringNotch\n//\n// Created by Alexander on 2025-09-13.\n//\n\nimport Foundation\nimport Defaul"
},
{
"path": "boringNotch/managers/MusicManager.swift",
"chars": 26527,
"preview": "//\n// MusicManager.swift\n// boringNotch\n//\n// Created by Harsh Vardhan Goswami on 03/08/24.\n//\nimport AppKit\nimport"
},
{
"path": "boringNotch/managers/NotchSpaceManager.swift",
"chars": 394,
"preview": "//\n// NotchSpaceManager.swift\n// boringNotch\n//\n// Created by Alexander on 2024-10-27.\n//\n\nimport Foundation\n\nclass N"
},
{
"path": "boringNotch/managers/VolumeManager.swift",
"chars": 14267,
"preview": "//\n// VolumeManager.swift\n// boringNotch\n//\n// Created by JeanLouis on 22/08/2025.\n//\n\nimport AppKit\nimport Combine\ni"
},
{
"path": "boringNotch/managers/WebcamManager.swift",
"chars": 10691,
"preview": "//\n// WebcamManager.swift\n// boringNotch\n//\n// Created by Harsh Vardhan Goswami on 19/08/24.\n//\nimport AVFoundation"
},
{
"path": "boringNotch/menu/StatusBarMenu.swift",
"chars": 695,
"preview": "import Cocoa\n\nclass BoringStatusMenu: NSMenu {\n \n var statusItem: NSStatusItem!\n \n override init() {\n "
},
{
"path": "boringNotch/metal/visualizer.metal",
"chars": 412,
"preview": "//\n// visualizer.metal\n// boringNotch\n//\n// Created by Harsh Vardhan Goswami on 28/08/24.\n//\n\n#include <metal_stdli"
},
{
"path": "boringNotch/models/BatteryStatusViewModel.swift",
"chars": 5229,
"preview": "import Cocoa\nimport Defaults\nimport Foundation\nimport IOKit.ps\nimport SwiftUI\n\n/// A view model that manages and monitor"
},
{
"path": "boringNotch/models/BoringViewModel.swift",
"chars": 7747,
"preview": "//\n// BoringViewModel.swift\n// boringNotch\n//\n// Created by Harsh Vardhan Goswami on 04/08/24.\n//\n\nimport Combine\ni"
},
{
"path": "boringNotch/models/CalendarModel.swift",
"chars": 368,
"preview": "//\n// CalendarModel.swift\n// Calendr\n//\n// Created by Paker on 31/12/20.\n// Original source: https://github.com/pake"
},
{
"path": "boringNotch/models/Constants.swift",
"chars": 9869,
"preview": "//\n// Constants.swift\n// boringNotch\n//\n// Created by Richard Kunkli on 2024. 10. 17..\n//\n\nimport SwiftUI\nimport Defa"
},
{
"path": "boringNotch/models/EventModel.swift",
"chars": 3025,
"preview": "//\n// EventModel.swift\n// Calendr\n//\n// Created by Paker on 24/12/20.\n// Original source: https://github.com/pakerwr"
},
{
"path": "boringNotch/models/MusicControlButton.swift",
"chars": 2152,
"preview": "//\n// MusicControlButton.swift\n// boringNotch\n//\n// Created by Alexander on 2025-11-16.\n//\n\nimport Defaults\n\nenum Mus"
},
{
"path": "boringNotch/models/PlaybackState.swift",
"chars": 1303,
"preview": "//\n// PlaybackState.swift\n// boringNotch\n//\n// Created by Alexander on 2025-03-29.\n//\n\nimport Foundation\n\nenum Repeat"
},
{
"path": "boringNotch/models/SharingStateManager.swift",
"chars": 3605,
"preview": "//\n// SharingStateManager.swift\n// boringNotch\n//\n// Created by Alexander on 2025-10-10.\n//\n\nimport AppKit\nimport Com"
},
{
"path": "boringNotch/observers/DragDetector.swift",
"chars": 4065,
"preview": "//\n// DragDetector.swift\n// boringNotch\n//\n// Created by Alexander on 2025-11-20.\n//\n\nimport Cocoa\nimport UniformType"
},
{
"path": "boringNotch/observers/FullscreenMediaDetection.swift",
"chars": 1481,
"preview": "//\n// FullscreenMediaDetection.swift\n// boringNotch\n//\n// Created by Richard Kunkli on 06/09/2024.\n//\n\nimport Foundat"
},
{
"path": "boringNotch/observers/MediaKeyInterceptor.swift",
"chars": 10132,
"preview": "//\n// MediaKeyInterceptor.swift\n// boringNotch\n//\n// Created by Alexander on 2025-11-23.\n\nimport Foundation\nimport Ap"
},
{
"path": "boringNotch/private/CGSSpace.swift",
"chars": 2737,
"preview": "//\n// CGSSpace.swift\n// boringNotch\n//\n// This Source Code Form is subject to the terms of the Mozilla Public\n// Licen"
},
{
"path": "boringNotch/sizing/matters.swift",
"chars": 2809,
"preview": "//\n// sizeMatters.swift\n// boringNotch\n//\n// Created by Harsh Vardhan Goswami on 05/08/24.\n//\n\nimport Defaults\nimpo"
},
{
"path": "boringNotch/utils/Logger.swift",
"chars": 2235,
"preview": "import Foundation\nimport SwiftUI\n\nenum LogCategory: String {\n case lifecycle = \"🔄\"\n case memory = \"💾\"\n case per"
},
{
"path": "boringNotch.xcodeproj/project.pbxproj",
"chars": 94269,
"preview": "// !$*UTF8*$!\n{\n\tarchiveVersion = 1;\n\tclasses = {\n\t};\n\tobjectVersion = 70;\n\tobjects = {\n\n/* Begin PBXBuildFile section *"
},
{
"path": "boringNotch.xcodeproj/project.xcworkspace/contents.xcworkspacedata",
"chars": 135,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Workspace\n version = \"1.0\">\n <FileRef\n location = \"self:\">\n </FileRef"
},
{
"path": "boringNotch.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist",
"chars": 238,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/P"
},
{
"path": "boringNotch.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings",
"chars": 181,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/P"
},
{
"path": "boringNotch.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved",
"chars": 3396,
"preview": "{\n \"originHash\" : \"ab961f5de25797b1a82bd0f8c39b561332a3dfe10de0a118e1252262fbd45864\",\n \"pins\" : [\n {\n \"identit"
},
{
"path": "crowdin.yml",
"chars": 126,
"preview": "files:\n - source: /boringNotch/Localizable.xcstrings\n translation: /boringNotch/Localizable.xcstrings\n multilingu"
},
{
"path": "mediaremote-adapter/MediaRemoteAdapter.framework/Versions/A/Resources/Info.plist",
"chars": 848,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple Computer//DTD PLIST 1.0//EN\" \"http://www.apple.c"
},
{
"path": "mediaremote-adapter/MediaRemoteAdapter.framework/Versions/A/_CodeSignature/CodeResources",
"chars": 2442,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/P"
},
{
"path": "mediaremote-adapter/mediaremote-adapter.pl",
"chars": 7940,
"preview": "#!/usr/bin/perl\n# Copyright (c) 2025 Jonas van den Berg\n# This file is licensed under the BSD 3-Clause License.\n\n# For u"
},
{
"path": "updater/appcast.xml",
"chars": 29657,
"preview": "<?xml version=\"1.0\" standalone=\"yes\"?>\n<rss xmlns:sparkle=\"http://www.andymatuschak.org/xml-namespaces/sparkle\" version="
}
]
// ... and 5 more files (download for full content)
About this extraction
This page contains the full source code of the TheBoredTeam/boring.notch GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 183 files (1.5 MB), approximately 373.2k tokens, and a symbol index with 4 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.