2021-08-20 15:26:19 +02:00
|
|
|
(
|
2022-08-07 17:46:31 +02:00
|
|
|
notifications_spawn_paused: false,
|
2021-08-20 15:26:19 +02:00
|
|
|
max_notifications: 0,
|
|
|
|
timeout: 8000,
|
|
|
|
// 60 Hz
|
|
|
|
poll_interval: 16,
|
|
|
|
|
2022-04-17 14:21:58 +02:00
|
|
|
focus_follows: Window,
|
|
|
|
|
2021-08-20 15:26:19 +02:00
|
|
|
layout_blocks: [
|
|
|
|
(
|
|
|
|
name: "root",
|
|
|
|
parent: "",
|
|
|
|
hook: Hook(parent_anchor: TL, self_anchor: TL),
|
|
|
|
offset: Vec2(x: 25.0, y: 25.0),
|
|
|
|
params: NotificationBlock((
|
2024-01-14 17:59:26 +01:00
|
|
|
background_color: Color(hex: "#<% opt.catppuccin.mantle %>"),
|
|
|
|
border_color: Color(hex: "#<% opt.catppuccin.red %>"),
|
|
|
|
border_color_critical: Color(hex: "#<% opt.catppuccin.peach %>"),
|
|
|
|
border_color_low: Color(hex: "#<% opt.catppuccin.sky %>"),
|
2021-08-20 15:26:19 +02:00
|
|
|
border_rounding: 0.0,
|
|
|
|
border_width: 4.0,
|
|
|
|
gap: Vec2(x: 0.0, y: 12.0),
|
2022-04-21 12:39:21 +02:00
|
|
|
monitor: -1,
|
2021-08-20 15:26:19 +02:00
|
|
|
notification_hook: Hook(parent_anchor: BL, self_anchor: TL),
|
|
|
|
)),
|
|
|
|
),
|
|
|
|
|
|
|
|
(
|
|
|
|
name: "summary",
|
|
|
|
parent: "image",
|
|
|
|
hook: Hook(parent_anchor: TR, self_anchor: TL),
|
|
|
|
offset: Vec2(x: 0.0, y: 0.0),
|
|
|
|
params: ScrollingTextBlock((
|
2024-01-14 17:59:26 +01:00
|
|
|
color: Color(hex: "#<% opt.catppuccin.red %>"),
|
2021-08-20 15:26:19 +02:00
|
|
|
ellipsize: End,
|
2023-01-20 22:30:45 +01:00
|
|
|
font: "<% opt.font %> Bold 12",
|
2021-08-20 15:26:19 +02:00
|
|
|
lhs_dist: 25.0,
|
|
|
|
padding: Padding(left: 8.0, right: 8.0, top: 8.0, bottom: 4.0),
|
|
|
|
rhs_dist: 25.0,
|
|
|
|
scroll_speed: 0.2,
|
|
|
|
scroll_t: 0.0,
|
|
|
|
text: "%s",
|
|
|
|
width: (min: 500, max: 500),
|
|
|
|
)),
|
|
|
|
),
|
|
|
|
|
|
|
|
(
|
|
|
|
name: "body",
|
|
|
|
parent: "summary",
|
|
|
|
hook: Hook(parent_anchor: BL, self_anchor: TL),
|
|
|
|
offset: Vec2(x: 0.0, y: 0.0),
|
|
|
|
params: TextBlock((
|
|
|
|
text: "%b",
|
2024-01-14 17:59:26 +01:00
|
|
|
color: Color(hex: "#<% opt.catppuccin.text %>"),
|
2021-08-20 15:26:19 +02:00
|
|
|
ellipsize: End,
|
2023-01-20 22:30:45 +01:00
|
|
|
font: "<% opt.font %> Bold 12",
|
2021-08-20 15:26:19 +02:00
|
|
|
padding: Padding(left: 8.0, right: 8.0, top: 0.0, bottom: 8.0),
|
|
|
|
dimensions: (
|
2021-08-26 17:11:59 +02:00
|
|
|
width: (min: 500, max: 500),
|
2021-08-20 15:26:19 +02:00
|
|
|
height: (min: 0, max: 150),
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
),
|
|
|
|
|
|
|
|
(
|
|
|
|
name: "image",
|
|
|
|
parent: "root",
|
|
|
|
hook: Hook(parent_anchor: TL, self_anchor: TL),
|
|
|
|
offset: Vec2(x: 0.0, y: 0.0),
|
|
|
|
params: ImageBlock((
|
|
|
|
filter_mode: Triangle,
|
|
|
|
image_type: Hint,
|
|
|
|
padding: Padding(left: 8.0, right: 0.0, top: 8.0, bottom: 8.0),
|
|
|
|
rounding: 0.0,
|
|
|
|
scale_height: 64,
|
|
|
|
scale_width: 64,
|
|
|
|
)),
|
|
|
|
),
|
2021-08-26 17:11:59 +02:00
|
|
|
(
|
|
|
|
name: "progress",
|
|
|
|
parent: "body",
|
|
|
|
hook: Hook(parent_anchor: BR, self_anchor: TR),
|
|
|
|
offset: Vec2(x: 0.0, y: 0.0),
|
2022-05-31 15:07:07 +02:00
|
|
|
render_criteria: [Or([Progress])],
|
2021-08-26 17:11:59 +02:00
|
|
|
params: ProgressBlock((
|
|
|
|
background_color: Color(hex: "#00000000"),
|
2024-01-14 17:59:26 +01:00
|
|
|
border_color: Color(hex: "#<% opt.catppuccin.surface0 %>"),
|
2021-08-26 17:11:59 +02:00
|
|
|
border_rounding: 0.0,
|
|
|
|
border_width: 0.4,
|
2024-01-14 17:59:26 +01:00
|
|
|
fill_color: Color(hex: "#<% opt.catppuccin.teal %>"),
|
2021-08-26 17:11:59 +02:00
|
|
|
fill_rounding: 0.0,
|
|
|
|
height: 10.0,
|
|
|
|
padding: Padding(left: 8.0, right: 8.0, top: 0.0, bottom: 8.0),
|
|
|
|
width: 500.0,
|
|
|
|
)),
|
|
|
|
),
|
2021-08-20 15:26:19 +02:00
|
|
|
],
|
|
|
|
|
|
|
|
shortcuts: ShortcutsConfig (
|
2021-08-21 18:25:35 +02:00
|
|
|
notification_action1_and_close: 1,
|
2021-08-20 15:26:19 +02:00
|
|
|
notification_close: 2,
|
|
|
|
notification_closeall: 3,
|
|
|
|
),
|
|
|
|
)
|