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