-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes: #335
- Loading branch information
Showing
9 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -268,6 +268,10 @@ The following fields are available in criteria: | |
- _desktop-entry_ (string) | ||
- _actionable_ (boolean) | ||
- _expiring_ (boolean) | ||
- _mode_ (string) | ||
- Only apply style options in this section if the provided mode is | ||
currently enabled. For more information about modes, see the _MODES_ | ||
section. | ||
|
||
The following fields are also available to match on a second pass based on | ||
where previous style options decided to place each notification: | ||
|
@@ -388,6 +392,25 @@ specifiers. | |
|
||
*%t* Total number of notifications | ||
|
||
# MODES | ||
|
||
mako supports applying style options conditionally via modes. A configuration | ||
section with a _mode_ criteria will only be applied if the current mode | ||
matches. **makoctl**(1) can be used to change the current mode. | ||
|
||
The default mode is named "default". | ||
|
||
For example, to hide all notifications if the mode "dnd" (Do Not Disturb) is | ||
enabled: | ||
|
||
``` | ||
[mode=dnd] | ||
invisible=1 | ||
``` | ||
|
||
_makoctl set-mode dnd_ will hide all notifications, _makoctl set-mode default_ | ||
will show them again. | ||
|
||
# AUTHORS | ||
|
||
Maintained by Simon Ser <[email protected]>, who is assisted by other | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters