dnd

package
v0.9.0-beta.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2025 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DNDManager

type DNDManager struct {
	// contains filtered or unexported fields
}

DNDManager handles Do Not Disturb functionality across platforms

func NewDNDManager

func NewDNDManager(notificationManager *notifications.NotificationManager) *DNDManager

NewDNDManager creates a new DND manager

func (*DNDManager) CheckShortcutsSetup

func (d *DNDManager) CheckShortcutsSetup() (bool, error)

CheckShortcutsSetup verifies if the required Focus mode shortcuts are available

func (*DNDManager) Disable

func (d *DNDManager) Disable() error

Disable disables Do Not Disturb mode

func (*DNDManager) Enable

func (d *DNDManager) Enable() error

Enable enables Do Not Disturb mode

func (*DNDManager) IsEnabled

func (d *DNDManager) IsEnabled() (bool, error)

IsEnabled returns true if Do Not Disturb is currently enabled

func (*DNDManager) SendBreakNotification

func (d *DNDManager) SendBreakNotification(workDuration time.Duration) error

SendBreakNotification sends a break reminder notification

func (*DNDManager) SendEndOfDayNotification

func (d *DNDManager) SendEndOfDayNotification(totalTime time.Duration, targetHours float64) error

SendEndOfDayNotification sends an end-of-day reminder notification

func (*DNDManager) SendIdleNotification

func (d *DNDManager) SendIdleNotification(idleDuration time.Duration) error

SendIdleNotification sends an idle detection notification

func (*DNDManager) SendSessionCompleteNotification

func (d *DNDManager) SendSessionCompleteNotification(duration time.Duration, project string) error

SendSessionCompleteNotification sends a session completion notification

func (*DNDManager) TestNotifications

func (d *DNDManager) TestNotifications() error

TestNotifications sends a test notification to verify the system is working

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL