Skip to content

Instantly share code, notes, and snippets.

@Toqozz
Created August 5, 2020 09:53
Show Gist options
  • Save Toqozz/c63418250f7732d5cbf89446e3bedcfe to your computer and use it in GitHub Desktop.
Save Toqozz/c63418250f7732d5cbf89446e3bedcfe to your computer and use it in GitHub Desktop.
(
max_notifications: 0,
min_window_width: 1,
min_window_height: 1,
timeout: 10000,
poll_interval: 6,
debug: true,
debug_color: Color(r: 0.0, g: 1.0, b: 0.0, a: 1.0),
debug_color_alt: Color(r: 1.0, g: 0.0, b: 0.0, a: 1.0),
layout_blocks: [
(
name: "root",
parent: "",
hook: Hook(parent_hook: TL, self_hook: TL),
offset: Vec2(x: 7.0, y: 7.0),
params: NotificationBlock((
monitor: 0,
border_width: 3.0,
border_rounding: 3.0,
background_color: Color(r: 0.15686, g: 0.15686, b: 0.15686, a: 1.0),
border_color_urgency_low: Color(r: 0.15686, g: 0.15686, b: 0.15686, a: 1.0),
border_color_urgency_normal: Color(r: 0.92157, g: 0.858824, b: 0.698039, a: 1.0),
border_color_urgency_critical: Color(r: 0.98431, g: 0.28627, b: 0.203922, a: 1.0),
border_color_paused: Color(r: 0.98431, g: 0.741176, b: 0.184314, a: 1.0),
gap: Vec2(x: 0.0, y: 8.0),
notification_hook: Hook(parent_hook: BL, self_hook: TL),
)),
),
(
name: "image",
parent: "root",
hook: Hook(parent_hook: TL, self_hook: TL),
offset: Vec2(x: 0.0, y: 0.0),
params: ImageBlock((
image_type: App,
padding: Padding(left: 20.0, right: 20.0, top: 20.0, bottom: 20.0),
rounding: 5.0,
scale_width: 100,
scale_height: 100,
min_width: 0,
min_height: 0,
filter_mode: Lanczos3,
)),
),
(
name: "summary",
parent: "image",
hook: Hook(parent_hook: TR, self_hook: TL),
offset: Vec2(x: 0.0, y: 0.0),
params: TextBlock((
text: "%s",
font: "Arial 30",
color: Color(r: 0.92157, g: 0.858824, b: 0.698039, a: 1.0),
padding: Padding(left: 20.0, right: 20.0, top: 20.0, bottom: 20.0),
dimensions: (width: (min: 50, max: -1), height: (min: 0, max: 0)),
dimensions_image_hint: (width: (min: 50, max: -1), height: (min: 0, max: 0)),
dimensions_image_app: (width: (min: 50, max: -1), height: (min: 0, max: 0)),
dimensions_image_both: (width: (min: 50, max: -1), height: (min: 0, max: 0)),
)),
),
(
name: "body",
parent: "summary",
hook: Hook(parent_hook: BL, self_hook: TL),
offset: Vec2(x: 10.0, y: 0.0),
params: ScrollingTextBlock((
text: "%b",
font: "Arial 30",
color: Color(r: 0.92157, g: 0.858824, b: 0.698039, a: 1.0),
padding: Padding(left: 20, right: 20.0, top: 20.0, bottom: 20.0),
width: (min: 150, max: 500),
width_image_hint: (min: 150, max: 500),
width_image_app: (min: 150, max: 500),
width_image_both: (min: 150, max: 500),
scroll_speed: 0.1,
lhs_dist: 35.0,
rhs_dist: 35.0,
scroll_t: 1.0,
)),
),
],
shortcuts: ShortcutsConfig (
notification_close: 1,
notification_closeall: 3,
notification_pause: 2,
notification_url: 8,
),
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment