refactor: new system basics
This commit is contained in:
135
wired/wired.ron
Normal file
135
wired/wired.ron
Normal file
@@ -0,0 +1,135 @@
|
||||
(
|
||||
max_notifications: 0,
|
||||
timeout: 10000,
|
||||
|
||||
zero_timeout_behavior: NeverExpire,
|
||||
|
||||
// Poll when notifications present
|
||||
poll_interval: 16,
|
||||
|
||||
// Poll when notifications are not present.
|
||||
idle_poll_interval: 500,
|
||||
|
||||
// Wired will pause notifications if you are idle (no mouse or keyboard input) for longer than
|
||||
idle_threshold: 3600,
|
||||
|
||||
unpause_on_input: false,
|
||||
|
||||
replacing_enabled: true,
|
||||
|
||||
replacing_resets_timeout: false,
|
||||
|
||||
closing_enabled: true,
|
||||
|
||||
history_length: 100,
|
||||
|
||||
// Options: Mouse, Window
|
||||
focus_follows: Mouse,
|
||||
|
||||
// Enable printing notification data to a file.
|
||||
// Default: None
|
||||
//print_to_file: "/tmp/wired.log",
|
||||
|
||||
min_window_width: 1,
|
||||
min_window_height: 1,
|
||||
|
||||
trim_whitespace: true,
|
||||
|
||||
// Enable/disable debug rendering.
|
||||
debug: false,
|
||||
debug_color: Color(r: 0.0, g: 1.0, b: 0.0, a: 1.0), // Primary color for debug rectangles.
|
||||
debug_color_alt: Color(r: 1.0, g: 0.0, b: 0.0, a: 1.0), // Secondary color for debug rectangles.
|
||||
|
||||
layout_blocks: [
|
||||
// Layout 1, when an image is present.
|
||||
(
|
||||
name: "root",
|
||||
parent: "",
|
||||
hook: Hook(parent_anchor: TR, self_anchor: TR),
|
||||
offset: Vec2(x: -12.0, y: 54),
|
||||
//render_criteria: [HintImage],
|
||||
// https://github.com/Toqozz/wired-notify/wiki/NotificationBlock
|
||||
params: NotificationBlock((
|
||||
monitor: 0,
|
||||
border_width: 2.0,
|
||||
border_rounding: 2.0,
|
||||
//background_color: Color(r: 0.15686, g: 0.15686, b: 0.15686, a: 1.0),
|
||||
background_color: Color(hex: "#141c21"),
|
||||
border_color: Color(hex: "#93a1a1"),
|
||||
border_color_low: Color(hex: "#282828"),
|
||||
border_color_critical: Color(hex: "#fb4934"),
|
||||
border_color_paused: Color(hex: "#fabd2f"),
|
||||
|
||||
gap: Vec2(x: 0.0, y: 8.0),
|
||||
notification_hook: Hook(parent_anchor: BL, self_anchor: TL),
|
||||
)),
|
||||
),
|
||||
|
||||
(
|
||||
name: "image",
|
||||
parent: "root",
|
||||
hook: Hook(parent_anchor: TL, self_anchor: TL),
|
||||
offset: Vec2(x: 0.0, y: 0.0),
|
||||
// https://github.com/Toqozz/wired-notify/wiki/ImageBlock
|
||||
params: ImageBlock((
|
||||
image_type: Hint,
|
||||
// We actually want 4px padding, but the border is 3px.
|
||||
padding: Padding(left: 7.0, right: 0.0, top: 7.0, bottom: 7.0),
|
||||
rounding: 1.0,
|
||||
scale_width: 48,
|
||||
scale_height: 48,
|
||||
filter_mode: Lanczos3,
|
||||
)),
|
||||
),
|
||||
|
||||
(
|
||||
name: "summary",
|
||||
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: "%s",
|
||||
font: "JetBrainsMonoNL Nerd Font Mono 11",
|
||||
ellipsize: Middle,
|
||||
color: Color(hex: "#d6c4c4"),
|
||||
color_hovered: Color(hex: "#fbf1c7"),
|
||||
padding: Padding(left: 7.0, right: 7.0, top: 7.0, bottom: 0.0),
|
||||
dimensions: (width: (min: 50, max: 150), height: (min: 0, max: 0)),
|
||||
)),
|
||||
),
|
||||
|
||||
(
|
||||
name: "body",
|
||||
parent: "summary",
|
||||
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((
|
||||
text: "%b",
|
||||
font: "JetBrainsMonoNL Nerd Font Mono 10",
|
||||
color: Color(hex: "#93a1a1"),
|
||||
color_hovered: Color(hex: "#d6c4c4"),
|
||||
padding: Padding(left: 7.0, right: 7.0, top: 3.0, bottom: 7.0),
|
||||
width: (min: 150, max: 250),
|
||||
scroll_speed: 0.1,
|
||||
lhs_dist: 35.0,
|
||||
rhs_dist: 35.0,
|
||||
scroll_t: 1.0,
|
||||
)),
|
||||
),
|
||||
],
|
||||
|
||||
// https://github.com/Toqozz/wired-notify/wiki/Shortcuts
|
||||
shortcuts: ShortcutsConfig (
|
||||
notification_interact: 1,
|
||||
notification_close: 2,
|
||||
// notification_closeall: 99,
|
||||
// notification_pause: 99,
|
||||
|
||||
notification_action1: 3,
|
||||
// notification_action2: 99,
|
||||
// notification_action3: 99,
|
||||
// notification_action4: 99,
|
||||
),
|
||||
)
|
||||
Reference in New Issue
Block a user