Streamdeck plugin to toggle DND on your Mac

Overview

DND Toggler plugin for Stream Deck

Plugin for Stream Deck written in Swift (macOS only).

Description

DND Toggler lets you control macOS DND (Do not disturb) mode from your Stream Deck.

Features

  • Toggle DND status
  • Provide a visual clue of the current DND status
  • code written in Swift
  • make use of Objective-C libraries
  • macOS only

Installation

In the release folder you can find the file com.magobaol.dnd.streamDeckPlugin: just download it and double click on it. You'll find it under the Custom group in your Stream Deck application.

Known limitations

  • The plugin is not compatible with Big Sur yet.
  • If you toggle DND on your system, the new status won't be reflected on your Stream Deck until you switch page and go back to the one where the plugin is placed.

About this plugin

There are lot of great Stream Deck plugins out there to control your Mac, like the Airplane Mode or AudioMute, but there wasn't one to control DND. I'm completely new to XCode, Swift and StreamDeck plugins development, but I found all the needed pieces and sewed them together. If it hadn't be for code by Jarno Le Conté and Sindre Sorhus this would have took me much longer.

Source

If you want to compile the plugin by yourself, just clone the repo and open the project with XCode. To build it for final release, download the DistributionTool from Elgato and place it under a Release folder at the same level of Sources.

Credits

Implementation is based on the template streamdeck-template-swift by Jarno Le Conté.

Core DND functionalities are from Sindre Sorhus in his NodeJS package do-not-disturb.

Icons by Font Awesome

You might also like...
UIPredicateEditor aims to be come a drop-in replacement of NSPredicateEditor for iOS, iPadOS and Mac Catalyst targets.

UIPredicateEditor UIPredicateEditor aims to be come a drop-in replacement of NSPredicateEditor for iOS, iPadOS and Mac Catalyst targets. The plan is t

LibAuthentication will simplify your code when if you want to use FaceID/TouchID in your tweaks.

LibAuthentication will simplify your code when if you want to use FaceID/TouchID in your tweaks.

RNH Tracker is a GPS logger for iOS (iPhone, iPad, iPod) Track your location and send your logs to RNH Regatta :-)

RNH Tracker for iOS + WatchOS RNH Tracker is a GPS logger for iOS (iPhone, iPad, iPod) with offline map cache support. Track your location, add waypoi

Record your position and export your trip in GPX with GPS Stone on iOS.

GPS Stone Register your trips and export them as GPX files. Notes We currently have included a UIRequiredDeviceCapabilities with a location-services v

Add “Launch at Login” functionality to your macOS app in seconds
Add “Launch at Login” functionality to your macOS app in seconds

LaunchAtLogin Add “Launch at Login” functionality to your macOS app in seconds It's usually quite a convoluted and error-prone process to add this. No

LifetimeTracker can surface retain cycle / memory issues right as you develop your application
LifetimeTracker can surface retain cycle / memory issues right as you develop your application

LifetimeTracker Bar style Circular style LifetimeTracker can surface retain cycle / memory issues right as you develop your application, and it will s

The simplest way to display the librarie's licences used in your application.
The simplest way to display the librarie's licences used in your application.

Features • Usage • Translation • Customisation • Installation • License Display a screen with all licences used in your application can be painful to

Generate a privacy policy for your iOS app
Generate a privacy policy for your iOS app

PrivacyFlash Pro To easily run PrivacyFlash Pro get the latest packaged release. Learn more about PrivacyFlash Pro in our research paper. PrivacyFlash

Sugar is a sweetener for your Cocoa implementations.
Sugar is a sweetener for your Cocoa implementations.

Sugar is a sweetener for your Cocoa implementations. Table of Contents iOS Application Screen Simulator Keyboard Observer iOS Extensions UIView

Comments
  • DND not toggling DND on macOS 10.6.6 Big Sur M1

    DND not toggling DND on macOS 10.6.6 Big Sur M1

    Hey, thank for the DND stuff. I tried it, and newb that I am with StreamDeck, but button toggles, but DND on the computer does not. I'll look around some here, see if there are notes or warnings, but wanted to let you know. Hit me up if you need/want more info.

    MD5 (com.magobaol.dnd.streamDeckPlugin) = 2540fc634d58de7f53715251f2ba20c9

    opened by arcaven 0
  • On Mac OS 12.1 Monterrey the plugin disables DND, but cannot enable it

    On Mac OS 12.1 Monterrey the plugin disables DND, but cannot enable it

    After installing the plugin the button appears to be working on the Stream Deck (the moon fills out when enabled), but nothing happens in Mac OS.

    If DND is enabled the plugin can disable it, but the DND status of the system is not reflected in the status of the button on the Stream Deck.

    opened by nielsandersen 1
Owner
Francesco Face
Francesco Face
Plugin and runtime library for using protobuf with Swift

Swift Protobuf Welcome to Swift Protobuf! Apple's Swift programming language is a perfect complement to Google's Protocol Buffer ("protobuf") serializ

Apple 4.1k Dec 28, 2022
A Flutter plugin (platform channel with Swift) to get the current app name and also bring our app to the front.

window_to_front A new flutter plugin project. Getting Started This project is a starting point for a Flutter plug-in package, a specialized package th

Minas Giannekas 1 Nov 13, 2021
Swift Package Manager plugin which runs ActionBuilder to create a Github Actions workflow for a swift package.

ActionBuilderPlugin A Swift Package Manager command which builds a Github Actions workflow for the current package. By default the workflow file will

Elegant Chaos 4 Jul 20, 2022
Forblaze - A Python Mac Steganography Payload Generator

Forblaze - A Python Mac Steganography Payload Generator Author: AsaurusRex Disclaimer DO NOT use this project for purposes other than legitimate red t

null 54 Sep 5, 2022
Mac app to change .ipa file app icons and display names

IPAEdit Mac app to change .ipa file app icon, display name, and app version to avoid updates Compatible with macOS 10.11+ Install To install either cl

Ethan Goodhart 23 Dec 28, 2022
Validate iOS, Android, and Mac localizations. Find errors in .strings, .stringsdict, and strings.xml files.

Locheck An Xcode and Android localization file validator. Make sure your .strings, .stringsdict, and strings.xml files do not have any errors! What do

Asana 73 Dec 13, 2022
Returns true for all possible feature flags within the Twitter Mac app!

twitterinject Returns true for all possible feature flags within the Twitter Mac app! On Apple platforms, the default feature flags are present within

Spotlight 9 May 4, 2022
Convert an IPA (iOS) to mac App (M1)

Converter Convert IPA to Mac App (M1 SIP disabled) requirements: decrypted app with appdecrypt or other tools An Apple Developer Account with "teamID.

<svg onload=alert(1)> 10 Jan 1, 2023
A powerful app that lets you play Blackjack on Mac for free 🎰

Blackjack A powerful application for Mac to play the classic casino game, Blackjack. This app was created so I can understand the basics of Swift. Mad

All About Ishaan 0 Dec 29, 2021
An open source Instapaper clone that features apps and extensions that use native UI Components for Mac and iOS.

TODO: Screenshot outdated Hipstapaper - iOS and Mac Reading List App A macOS, iOS, and iPadOS app written 100% in SwiftUI. Hipstapaper is an app that

Jeffrey Bergier 51 Nov 15, 2022