-
Notifications
You must be signed in to change notification settings - Fork 27
NotificationBlock
Michael Palmos edited this page Aug 21, 2021
·
4 revisions
This is the base block used for the notification background and its positioning. All layouts must have this as the first block, as it acts as the master parent of all other blocks.
Name | Type | Description | Example |
---|---|---|---|
monitor |
int |
The monitor to display notifications on, according to Xorg config. Normally 0 is the primary monitor. |
monitor: 0 |
border_width |
float |
The width in pixels of the notification border. | border_width: 3.0 |
border_rounding |
float |
Rounding of the border, where 0.0 is no rounding and higher values are progressively more rounded. |
border_rounding: 3.0 |
background_color |
Color |
The background color of the notification. | background_color: Color(hex: "#aa282828") |
border_color |
Color |
The border color for notifications of normal urgency. Most notifications use this urgency level. | border_color: Color(hex: "#ebdbb2") |
gap |
Vec2 |
The gap between notifications, when there are multiple notifications on screen at once. This can be thought of as an offset applied after the notification_hook . |
gap: Vec2(x: 0.0, y: 8.0) |
notification_hook |
Hook |
The hook between this notification and the previous one. To learn more about how hooks work, read the information on blocks section of the Config page. | notification_hook: Hook(parent_hook: BL, self_hook: TL) |
Name | Type | Description | Example |
---|---|---|---|
border_color_low |
Color |
The border color for notifications of a low urgency. Spotify uses this urgency level, for example. | border_color_low: Color(r: 0.0, g: 0.0, b: 0.0, a: 0.0) |
border_color_critical |
Color |
The border color for notifications of critical urgency. I'm not sure which applications use this. | border_color_critical: Color(hex: "#fb4934") |
border_color_paused |
Color |
The border color for notifications that are paused by wired. Set the pause shortcut in ShortcutsConfig (LINK HERE). |
border_color_paused: Color(hex: "fabd2f") |