home/wired: change notification layout

This commit is contained in:
Dmitriy Pleshevskiy 2022-09-22 00:35:35 +03:00
parent fa35edd451
commit 25954cb5cd
Signed by: pleshevskiy
GPG key ID: 1B59187B161C0215

View file

@ -5,7 +5,7 @@
// The default timeout, in miliseconds, for notifications that don't have an initial timeout set. // The default timeout, in miliseconds, for notifications that don't have an initial timeout set.
// 1000ms = 1s. // 1000ms = 1s.
timeout: 2500, timeout: 10000,
// `poll_interval` decides decides how often (in milliseconds) Wired checks for new notifications, events, // `poll_interval` decides decides how often (in milliseconds) Wired checks for new notifications, events,
// draws notifications (if necessary), etc. // draws notifications (if necessary), etc.
@ -88,7 +88,7 @@
// https://github.com/Toqozz/wired-notify/wiki/NotificationBlock // https://github.com/Toqozz/wired-notify/wiki/NotificationBlock
params: NotificationBlock(( params: NotificationBlock((
monitor: 0, monitor: 0,
border_width: 1.0, border_width: 1.5,
border_rounding: 0.0, border_rounding: 0.0,
background_color: Color(hex: "#ffffff"), background_color: Color(hex: "#ffffff"),
border_color: Color(hex: "#2e9afe"), border_color: Color(hex: "#2e9afe"),
@ -119,19 +119,36 @@
), ),
( (
name: "summary", name: "app",
parent: "image", parent: "image",
hook: Hook(parent_anchor: MR, self_anchor: BL), hook: Hook(parent_anchor: MR, self_anchor: BL),
offset: Vec2(x: 0.0, y: 0.0), offset: Vec2(x: 0.0, y: 0.0),
// https://github.com/Toqozz/wired-notify/wiki/TextBlock // https://github.com/Toqozz/wired-notify/wiki/TextBlock
params: TextBlock((
text: "%n",
font: "monospace 8",
ellipsize: Middle,
color: Color(hex: "#7f7f7f"),
color_hovered: Color(hex: "#7f7f7f"),
padding: Padding(left: 16.0, right: 0.0, top: 6.0, bottom: 0.0),
dimensions: (width: (min: 0, max: 150), height: (min: 0, max: 0)),
)),
),
(
name: "summary",
parent: "app",
hook: Hook(parent_anchor: BL, self_anchor: TL),
offset: Vec2(x: 0.0, y: 0.0),
// https://github.com/Toqozz/wired-notify/wiki/TextBlock
params: TextBlock(( params: TextBlock((
text: "%s", text: "%s",
font: "sans-serif Bold 11", font: "sans-serif Bold 13",
ellipsize: Middle, ellipsize: Middle,
color: Color(hex: "#17182b"), color: Color(hex: "#17182b"),
color_hovered: Color(hex: "#2e9afe"), color_hovered: Color(hex: "#2e9afe"),
padding: Padding(left: 16.0, right: 16.0, top: 12.0, bottom: 0.0), padding: Padding(left: 16.0, right: 16.0, top: 4.0, bottom: 0.0),
dimensions: (width: (min: 100, max: 150), height: (min: 0, max: 0)), dimensions: (width: (min: 300, max: 300), height: (min: 0, max: 0)),
)), )),
), ),
@ -141,17 +158,13 @@
hook: Hook(parent_anchor: BL, self_anchor: TL), hook: Hook(parent_anchor: BL, self_anchor: TL),
offset: Vec2(x: 0.0, y: -3.0), offset: Vec2(x: 0.0, y: -3.0),
// https://github.com/Toqozz/wired-notify/wiki/ScrollingTextBlock // https://github.com/Toqozz/wired-notify/wiki/ScrollingTextBlock
params: ScrollingTextBlock(( params: TextBlock((
text: "%b", text: "%b",
font: "sans-serif 11", font: "sans-serif 11",
color: Color(hex: "#17182b"), color: Color(hex: "#17182b"),
color_hovered: Color(hex: "#17182b"), color_hovered: Color(hex: "#17182b"),
padding: Padding(left: 16.0, right: 16.0, top: 7.0, bottom: 12.0), padding: Padding(left: 16.0, right: 16.0, top: 7.0, bottom: 12.0),
width: (min: 150, max: 250), dimensions: (width: (min: 300, max: 300), height: (min: 0, max: 150)),
scroll_speed: 0.1,
lhs_dist: 35.0,
rhs_dist: 35.0,
scroll_t: 1.0,
)), )),
), ),
], ],
@ -159,11 +172,11 @@
// https://github.com/Toqozz/wired-notify/wiki/Shortcuts // https://github.com/Toqozz/wired-notify/wiki/Shortcuts
shortcuts: ShortcutsConfig ( shortcuts: ShortcutsConfig (
notification_interact: 1, notification_interact: 1,
notification_close: 2, notification_close: 3,
// notification_closeall: 99, // notification_closeall: 99,
// notification_pause: 99, // notification_pause: 99,
notification_action1: 3, notification_action1: 2,
// notification_action2: 99, // notification_action2: 99,
// notification_action3: 99, // notification_action3: 99,
// notification_action4: 99, // notification_action4: 99,