-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsettings.ps1
116 lines (101 loc) · 4.22 KB
/
settings.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# The encoding of this file must be UTF-8 with BOM.
$settings = @{
outlook = @{
# The outlook folder full path.
folderPath = "\\[email protected]\folder-name"
}
# Icon file used for the title bar. The path should be either a relative path from the directory of this settings file or a full path.
iconPath = ".\icons\icon.png"
# Unread count is queried with this interval.
updateUnreadCountIntervalInSeconds = 3
# If this is set to $true, all of the emails in the folder are treated as unread.
# The badge count indicates the number of emails, not the actual unread count.
# This is useful for Follow up Search Folders.
treatAllAsUnread = $false
# Overlay badge icon settings
# Available WPF color names are listed here:
# https://docs.microsoft.com/en-us/dotnet/api/system.windows.media.colors?view=net-5.0
overlayIcon = @{
size = 20.0
lineWidth = 1.0
backgroundColor = "DeepPink"
textColor = "White" # If you want to hide the unread number, set this to "Transparent".
}
# Show a summary of unread items during a mouse over.
unreadItemsSummary = @{
enable = $true # Set $true or $false to toggle this feature.
maxItemCount = 10
maxItemCharacterCount = 26
}
# Flashes taskbar when unread email count increases.
flashTaskbar = @{
enable = $true # Set $true or $false to toggle this feature.
rateInMillisecond = 300 # Flash interval. Set 0 to use the system default rate.
count = 2 # Flash count
}
# Do Not Disturb mode
doNotDisturb = @{
globalMode = $true # $true or $false. If $true, Do Not Disturb status is shared between all the notifier instances.
}
# Click Actions
# The actions are executed sequentially when the app on the taskbar is clicked.
# Basic setting
clickActions = @(
,@("FocusOnFolder") # Open or focus on the folder in Outlook
)
<#
# Open a new GitHub notifications page with firefox
clickActions = @(
,@("MarkAllAsRead") # Mark all emails in the folder as read
,@("RunCommand", '"C:\Program Files\Mozilla Firefox\firefox.exe"', "-url", "https://github.com/notifications") # Run executables with arguments
)
#>
<#
# Open GitHub notifications page which is pinned to tab1 on chrome
clickActions = @(
,@("MarkAllAsRead")
,@("FocusOnApp", "chrome") # Focus on an application
,@("SendKeysToAppInFocus", "^1") # Send keyboard input to the app in focus. The key string format follows Windows.Forms.SendKeys format: https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.sendkeys?view=net-5.0
,@("SleepMilliseconds", 100) # Wait for the specified milliseconds
,@("SendKeysToAppInFocus", "gn") # GitHub notifications shortcut
)
#>
<#
# Open an unread email if it exists. Open the folder if there is no unread email.
clickActions = @(
,@("Or", @("OpenNewestUnread"), @("FocusOnFolder"))
)
#>
# Thumb buttons
# You can add max 7 buttons.
thumbButtons = @(
,@{
description = "Open unread email"
iconPath = ".\icons\open_mail.png"
clickActions = @(
,@("OpenOldestUnread")
)
}
,@{
description = "Mark all as read"
iconPath = ".\icons\mark_read.png"
clickActions = @(
,@("MarkAllAsRead")
)
}
,@{
description = "Jump to notifications page"
iconPath = ".\icons\web.png"
clickActions = @(
,@("RunCommand", '"C:\Program Files\Mozilla Firefox\firefox.exe"', "-url", "https://github.com/notifications")
)
}
,@{
description = "Toggle Do Not Disturb"
iconPath = ".\icons\notifications_off.png"
clickActions = @(
,@("ToggleDoNotDisturb")
)
}
)
}