Skip to content

Commit

Permalink
Add Notification sorting documentation (#160)
Browse files Browse the repository at this point in the history
* Add Notification sorting documentation

* Add i3xrocks.notify.sort.by to Xresources reference.
  • Loading branch information
dferrand committed Jun 5, 2022
1 parent 934bd48 commit 698b4d6
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions content/en/docs/Interface/notifications.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,21 @@ Regolith 1.3 introduces the integration of [Rofication](https://github.com/DaveD
## Managing Notifications

Next to the bell icon in the bar is the current number of notifications. To view and delete them, select {{< keys "super,n" >}} and a menu will load. Notifications can be read and then deleted with {{< keys "delete" >}} and the notification window can be dismissed with {{< keys "Esc" >}}. All low-priority notifications can be deleted at once with {{< keys "shift,delete" >}} from within the notification menu.

## Notification sorting

By default notifications are sorted by reverse order of creation (newest notification first).

It is possible to customize notification sort order by setting the `i3xrocks.notify.sort.by` in your `Xresources` file. This value contains a space separated list of field to sort the notifications on. If a field is preceded by a `!`, it will be sorted by descending order.

To sort notifications from oldest to newest, add the following line to your `~/.config/regolith/Xresources` file:

```console
i3xrocks.notify.sort.by: timestamp
```

To sort notification first by urgency (from critical to low) then be reverse order of creation (newest notification first), add the following line to your `~/.config/regolith/Xresources` file:

```console
i3xrocks.notify.sort.by: !urgency !timestamp
```
1 change: 1 addition & 0 deletions content/en/docs/Reference/xresources.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,3 +169,4 @@ The following `Xresources` keys are undefined by default but can be used by user
| i3xrocks.action.media-player.right | Override command to run on right button click of media player status indicator. |
| i3xrocks.action.time | Override command to run on date time status indicator. |
| i3xrocks.action.battery | Override command to run on battery status indicator. |
| i3xrocks.notify.sort.by | Override rofication notification sort order. |

0 comments on commit 698b4d6

Please sign in to comment.